The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / netplug / 0001-makefile-flags.patch
1 Preserve the cflags settings, because buildroot clobbers them.
2
3 --- a/Makefile  2010-10-05 00:06:38.000000000 -0700
4 +++ b/Makefile  2010-10-05 00:15:27.000000000 -0700
5 @@ -11,11 +11,14 @@ mandir ?= $(prefix)/usr/share/man
6  
7  install_opts :=
8  
9 -CFLAGS += -Wall -std=gnu99 -DNP_ETC_DIR='"$(etcdir)"' \
10 +NETPLUG_CFLAGS += -Wall -std=gnu99 -DNP_ETC_DIR='"$(etcdir)"' \
11         -DNP_SCRIPT_DIR='"$(scriptdir)"' -ggdb3 -O3 -DNP_VERSION='"$(version)"'
12  
13 +%.o: %.c
14 +       $(CC) $(NETPLUG_CFLAGS) $(CFLAGS) -c -o $@ $<
15 +
16  netplugd: config.o netlink.o lib.o if_info.o main.o
17 -       $(CC) $(LDFLAGS) -o $@ $^
18 +       $(CC) $(LDFLAGS) -o $@ $(NETPLUG_CFLAGS) $^
19  
20  install:
21         install -d $(install_opts) -m 755 \