summaryrefslogtreecommitdiffstats
path: root/package/netplug
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-05-10 23:39:50 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-05-11 08:59:02 +0200
commitc554cc2a2e62e4c383a20270b34a8d9b933ca6f0 (patch)
tree6c5d7af704b5cbb2c04973e8b1f18f8178ab760c /package/netplug
parent5b9384337a6600f36f2be94a9310c1642aee54ef (diff)
downloadbuildroot-novena-c554cc2a2e62e4c383a20270b34a8d9b933ca6f0.tar.gz
buildroot-novena-c554cc2a2e62e4c383a20270b34a8d9b933ca6f0.zip
netplug: disable -Werror to fix build failure
netplug uses nested functions, and gcc generates a warning that is turned into an error: cc1: warnings being treated as errors if_info.c: In function 'ifsm_scriptdone': if_info.c:289: error: generating trampoline in object (requires executable stack) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/netplug')
-rw-r--r--package/netplug/netplug-1.2.9-disable-werror.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/netplug/netplug-1.2.9-disable-werror.patch b/package/netplug/netplug-1.2.9-disable-werror.patch
new file mode 100644
index 000000000..d8a3e15a1
--- /dev/null
+++ b/package/netplug/netplug-1.2.9-disable-werror.patch
@@ -0,0 +1,22 @@
+netplug uses nested functions, and gcc generates a warning that
+is turned into an error:
+
+cc1: warnings being treated as errors
+if_info.c: In function 'ifsm_scriptdone':
+if_info.c:289: error: generating trampoline in object (requires executable stack)
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: netplug-1.2.9/Makefile
+===================================================================
+--- netplug-1.2.9.orig/Makefile 2010-05-09 21:07:40.000000000 +0200
++++ netplug-1.2.9/Makefile 2010-05-09 21:09:32.000000000 +0200
+@@ -9,7 +9,7 @@
+
+ install_opts :=
+
+-CFLAGS += -Wall -Werror -std=gnu99 -DNP_ETC_DIR='"$(etcdir)"' \
++CFLAGS += -Wall -std=gnu99 -DNP_ETC_DIR='"$(etcdir)"' \
+ -DNP_SCRIPT_DIR='"$(scriptdir)"' -ggdb3 -O3 -DNP_VERSION='"$(version)"'
+
+ netplugd: config.o netlink.o lib.o if_info.o main.o