diff options
author | Martin Banky <martin.banky@gmail.com> | 2010-12-12 22:54:01 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-12-14 00:56:10 +0100 |
commit | 20d4792e5ba878962a135057bff7ee658c264911 (patch) | |
tree | cc845165085eee8482f7d9d6d7fbad6e9c74cbb9 /package/netplug/netplug-1.2.9.2-makefile-flags.patch | |
parent | 03f36427e4ed199cd2890b254c160dc09656c3d8 (diff) | |
download | buildroot-novena-20d4792e5ba878962a135057bff7ee658c264911.tar.gz buildroot-novena-20d4792e5ba878962a135057bff7ee658c264911.zip |
netplug: convert to gentargets and bump to 1.2.9.2
Signed-off-by: Martin Banky <Martin.Banky@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/netplug/netplug-1.2.9.2-makefile-flags.patch')
-rw-r--r-- | package/netplug/netplug-1.2.9.2-makefile-flags.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/netplug/netplug-1.2.9.2-makefile-flags.patch b/package/netplug/netplug-1.2.9.2-makefile-flags.patch new file mode 100644 index 000000000..b2468f8c8 --- /dev/null +++ b/package/netplug/netplug-1.2.9.2-makefile-flags.patch @@ -0,0 +1,21 @@ +Preserve the cflags settings, because buildroot clobbers them. + +--- a/Makefile 2010-10-05 00:06:38.000000000 -0700 ++++ b/Makefile 2010-10-05 00:15:27.000000000 -0700 +@@ -11,11 +11,14 @@ mandir ?= $(prefix)/usr/share/man + + install_opts := + +-CFLAGS += -Wall -std=gnu99 -DNP_ETC_DIR='"$(etcdir)"' \ ++NETPLUG_CFLAGS += -Wall -std=gnu99 -DNP_ETC_DIR='"$(etcdir)"' \ + -DNP_SCRIPT_DIR='"$(scriptdir)"' -ggdb3 -O3 -DNP_VERSION='"$(version)"' + ++%.o: %.c ++ $(CC) $(NETPLUG_CFLAGS) $(CFLAGS) -c -o $@ $< ++ + netplugd: config.o netlink.o lib.o if_info.o main.o +- $(CC) $(LDFLAGS) -o $@ $^ ++ $(CC) $(LDFLAGS) -o $@ $(NETPLUG_CFLAGS) $^ + + install: + install -d $(install_opts) -m 755 \ |