You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
675 B

  1. --- a/userland/configure
  2. +++ b/userland/configure
  3. @@ -3296,14 +3296,16 @@ fi
  4. done
  5. -MACHINE=`uname -m`
  6. +if test -z "$MACHINE"; then
  7. + MACHINE=`uname -m`
  8. +fi
  9. CFLAGS=""
  10. SYS_LIBS=""
  11. VER=`cat ../kernel/linux/pf_ring.h | grep RING_VERSION | head -1 | cut -d '"' -f 2`
  12. MAJOR_VER=`cat ../kernel/linux/pf_ring.h | grep RING_VERSION | head -1 | cut -d '"' -f 2 | cut -d '.' -f 1`
  13. -NATIVE=`$CC -c -Q -march=native --help=target| grep "march" | xargs | cut -d ' ' -f 2`
  14. +NATIVE=`$CC -c -Q --help=target| grep "march" | xargs | cut -d ' ' -f 2`
  15. if test -f "lib/libs/libpfring_zc_x86_64_$NATIVE.a"; then
  16. CFLAGS="-march=native -mtune=native $CFLAGS"
  17. LIBARCH="_$NATIVE"