1 diff -ur iproute2-2.6.18-061002.org/genl/Makefile iproute2-2.6.18-061002/genl/Makefile
2 --- iproute2-2.6.18-061002.org/genl/Makefile 2006-10-02 22:13:34.000000000 +0200
3 +++ iproute2-2.6.18-061002/genl/Makefile 2006-10-03 09:09:13.940918661 +0200
8 -LDFLAGS += -Wl,-export-dynamic -lm -ldl
12 genl: $(GENLOBJ) $(LIBNETLINK) $(LIBUTIL) $(GENLLIB)
13 + $(LD) $(LDFLAGS) $(CFLAGS) -Wl,-export-dynamic -o $@ $^ $(LDLIBS) -lm -ldl
16 install -m 0755 -s genl $(DESTDIR)$(SBINDIR)
17 diff -ur iproute2-2.6.18-061002.org/netem/Makefile iproute2-2.6.18-061002/netem/Makefile
18 --- iproute2-2.6.18-061002.org/netem/Makefile 2006-10-02 22:13:34.000000000 +0200
19 +++ iproute2-2.6.18-061002/netem/Makefile 2006-10-03 09:00:45.533018231 +0200
21 all: $(DISTGEN) $(DISTDATA)
24 - $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
25 + $(HOSTCC) $(LDFLAGS) $(CCOPTS) -I../include -o $@ $@.c -lm
29 diff -ur iproute2-2.6.18-061002.org/tc/Makefile iproute2-2.6.18-061002/tc/Makefile
30 --- iproute2-2.6.18-061002.org/tc/Makefile 2006-10-02 22:13:34.000000000 +0200
31 +++ iproute2-2.6.18-061002/tc/Makefile 2006-10-03 09:00:45.533018231 +0200
34 LDLIBS += -L. -ltc -lm -ldl
36 -LDFLAGS += -Wl,-export-dynamic
42 - $(CC) $(CFLAGS) -shared -fpic $< -o $@
43 + $(CC) $(LDFLAGS) $(CFLAGS) -shared -fpic $< -o $@
46 all: libtc.a tc $(TCSO)
48 tc: $(TCOBJ) $(LIBNETLINK) $(LIBUTIL) $(TCLIB)
49 + $(LD) $(LDFLAGS) $(CFLAGS) -Wl,-export-dynamic -o $@ $^ $(LDLIBS)
54 rm -f emp_ematch.yacc.output
57 - $(CC) $(CFLAGS) -shared -fpic -o q_atm.so q_atm.c -latm
58 + $(CC) $(LDFLAGS) $(CFLAGS) -shared -fpic -o q_atm.so q_atm.c -latm
61 $(YACC) $(YACCFLAGS) -o $@ $<