From b81a9521aac93ba11e4bd0e7d8d2f1e0798cb394 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 8 Mar 2014 00:56:37 +0000 Subject: [PATCH] libnet-1.0.x: remove CFLAGS hardcoding configure.in contains a test which overrides CFLAGS with CCOPTS when it determines that the compiler is GCC, this breaks build on most platforms where the ABI has to be explicitely specified (e.g: ARM VFP). Signed-off-by: Florian Fainelli SVN-Revision: 39800 --- libs/libnet-1.0.x/Makefile | 4 ++-- .../patches/200-no_cflags_ovveride.patch | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 libs/libnet-1.0.x/patches/200-no_cflags_ovveride.patch diff --git a/libs/libnet-1.0.x/Makefile b/libs/libnet-1.0.x/Makefile index e21b796798..c35b7eeaa0 100644 --- a/libs/libnet-1.0.x/Makefile +++ b/libs/libnet-1.0.x/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2014 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libnet0 PKG_VERSION:=1.0.2a -PKG_RELEASE:=8 +PKG_RELEASE:=9 PKG_SOURCE:=libnet-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.packetfactory.net/libnet/dist/deprecated/ diff --git a/libs/libnet-1.0.x/patches/200-no_cflags_ovveride.patch b/libs/libnet-1.0.x/patches/200-no_cflags_ovveride.patch new file mode 100644 index 0000000000..23f8a25b9d --- /dev/null +++ b/libs/libnet-1.0.x/patches/200-no_cflags_ovveride.patch @@ -0,0 +1,19 @@ +--- a/configure.in 2014-03-06 14:55:36.627221831 -0800 ++++ b/configure.in 2014-03-06 14:56:48.709112089 -0800 +@@ -53,16 +53,6 @@ + + + dnl +-dnl Use these compiler flags if we have gcc. +-dnl +-if test $ac_cv_prog_gcc = yes; then +-dnl if test -z $CFLAGS; then +- CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall' +- CFLAGS="$CCOPTS" +-dnl fi +-fi +- +-dnl + dnl Check for package inclusion/exclusion + dnl + AC_ARG_WITH(pf_packet, [ --with-pf_packet=[yes,no] override defaults], \ -- 2.30.2