]> git.pld-linux.org Git - packages/iproute2.git/blame - iproute2-LDFLAGS.patch
- up to 2.6.29
[packages/iproute2.git] / iproute2-LDFLAGS.patch
CommitLineData
b962ebab
AM
1diff -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
b65976f0
BZ
8-LDFLAGS += -Wl,-export-dynamic
9-LDLIBS += -lm -ldl
10
b962ebab
AM
11 all: genl
12
13 genl: $(GENLOBJ) $(LIBNETLINK) $(LIBUTIL) $(GENLLIB)
14+ $(LD) $(LDFLAGS) $(CFLAGS) -Wl,-export-dynamic -o $@ $^ $(LDLIBS) -lm -ldl
15
16 install: all
17 install -m 0755 -s genl $(DESTDIR)$(SBINDIR)
18diff -ur iproute2-2.6.18-061002.org/netem/Makefile iproute2-2.6.18-061002/netem/Makefile
19--- iproute2-2.6.18-061002.org/netem/Makefile 2006-10-02 22:13:34.000000000 +0200
20+++ iproute2-2.6.18-061002/netem/Makefile 2006-10-03 09:00:45.533018231 +0200
eb88d8c0 21@@ -7,7 +7,7 @@
22 all: $(DISTGEN) $(DISTDATA)
23
24 $(DISTGEN):
25- $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
26+ $(HOSTCC) $(LDFLAGS) $(CCOPTS) -I../include -o $@ $@.c -lm
27
28 %.dist: %
29 ./$* > $@
b962ebab
AM
30diff -ur iproute2-2.6.18-061002.org/tc/Makefile iproute2-2.6.18-061002/tc/Makefile
31--- iproute2-2.6.18-061002.org/tc/Makefile 2006-10-02 22:13:34.000000000 +0200
32+++ iproute2-2.6.18-061002/tc/Makefile 2006-10-03 09:00:45.533018231 +0200
33@@ -52,18 +52,17 @@
eb88d8c0 34
35 LDLIBS += -L. -ltc -lm -ldl
36
37-LDFLAGS += -Wl,-export-dynamic
38-
39 YACC := bison
40 LEX := flex
41
42 %.so: %.c
43- $(CC) $(CFLAGS) -shared -fpic $< -o $@
44+ $(CC) $(LDFLAGS) $(CFLAGS) -shared -fpic $< -o $@
45
46
47 all: libtc.a tc $(TCSO)
48
49 tc: $(TCOBJ) $(LIBNETLINK) $(LIBUTIL) $(TCLIB)
50+ $(LD) $(LDFLAGS) $(CFLAGS) -Wl,-export-dynamic -o $@ $^ $(LDLIBS)
51
52 libtc.a: $(TCLIB)
53 $(AR) rcs $@ $(TCLIB)
b962ebab 54@@ -80,7 +79,7 @@
eb88d8c0 55 rm -f emp_ematch.yacc.output
56
57 q_atm.so: q_atm.c
58- $(CC) $(CFLAGS) -shared -fpic -o q_atm.so q_atm.c -latm
59+ $(CC) $(LDFLAGS) $(CFLAGS) -shared -fpic -o q_atm.so q_atm.c -latm
60
61 %.yacc.c: %.y
62 $(YACC) $(YACCFLAGS) -o $@ $<
This page took 0.077422 seconds and 4 git commands to generate.