]> git.pld-linux.org Git - packages/iproute2.git/blob - iproute2-LDFLAGS.patch
- up to kernel 2.6.20
[packages/iproute2.git] / iproute2-LDFLAGS.patch
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
4 @@ -9,11 +9,10 @@
5  
6  GENLLIB :=
7  
8 -LDFLAGS += -Wl,-export-dynamic -lm -ldl
9 -
10  all: genl
11  
12  genl: $(GENLOBJ) $(LIBNETLINK) $(LIBUTIL) $(GENLLIB)
13 +       $(LD) $(LDFLAGS) $(CFLAGS) -Wl,-export-dynamic -o $@ $^ $(LDLIBS) -lm -ldl
14  
15  install: all
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
20 @@ -7,7 +7,7 @@
21  all: $(DISTGEN) $(DISTDATA)
22  
23  $(DISTGEN):
24 -       $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
25 +       $(HOSTCC) $(LDFLAGS) $(CCOPTS) -I../include -o $@ $@.c -lm
26  
27  %.dist: %
28         ./$* > $@
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
32 @@ -52,18 +52,17 @@
33  
34  LDLIBS += -L. -ltc -lm -ldl
35  
36 -LDFLAGS += -Wl,-export-dynamic
37 -
38  YACC := bison
39  LEX := flex
40  
41  %.so: %.c
42 -       $(CC) $(CFLAGS) -shared -fpic $< -o $@
43 +       $(CC) $(LDFLAGS) $(CFLAGS) -shared -fpic $< -o $@
44  
45  
46  all: libtc.a tc $(TCSO)
47  
48  tc: $(TCOBJ) $(LIBNETLINK) $(LIBUTIL) $(TCLIB)
49 +       $(LD) $(LDFLAGS) $(CFLAGS) -Wl,-export-dynamic -o $@ $^ $(LDLIBS)
50  
51  libtc.a: $(TCLIB)
52         $(AR) rcs $@ $(TCLIB)
53 @@ -80,7 +79,7 @@
54         rm -f emp_ematch.yacc.output
55  
56  q_atm.so: q_atm.c
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
59  
60  %.yacc.c: %.y
61         $(YACC) $(YACCFLAGS) -o $@ $<
This page took 0.029897 seconds and 3 git commands to generate.