1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 12:53:54 +02:00
openwrt-packages/libs/libpfring/patches/0002-fix-march-native.patch
Rosen Penev 433f882cd6 libpfring: Update to 7.4.0
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-12-26 11:11:02 -08:00

12 lines
571 B
Diff

--- a/userland/configure
+++ b/userland/configure
@@ -3291,7 +3291,7 @@ SYS_LIBS=""
VER=`cat ../kernel/linux/pf_ring.h | grep RING_VERSION | head -1 | cut -d '"' -f 2`
MAJOR_VER=`cat ../kernel/linux/pf_ring.h | grep RING_VERSION | head -1 | cut -d '"' -f 2 | cut -d '.' -f 1`
-NATIVE=`$CC -c -Q -march=native --help=target| grep "march" | xargs | cut -d ' ' -f 2`
+NATIVE=`$CC -c -Q --help=target| grep "march" | xargs | cut -d ' ' -f 2`
if test -f "lib/libs/libpfring_zc_x86_64_$NATIVE.a"; then
CFLAGS="-march=native -mtune=native $CFLAGS"
LIBARCH="_$NATIVE"