blob: 7d5251be3da3a15853e9e9d28d44c1cfbe145501 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
Patch from http://patch-tracker.debian.org/package/ptpd
Description: Fix ld --as-needed
This patch fixes the order of gcc arguments to fix ld --as-needed
Author: Roland Stigge <stigge@antcom.de>
Bug-Debian: http://bugs.debian.org/607583
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
src/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Makefile b/src/Makefile
index a672625..88a2fc8 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -40,7 +40,7 @@ CFLAGS += -DDBG_SIGUSR2_CHANGE_DEBUG
CFLAGS += -DPTP_EXPERIMENTAL
-LDFLAGS+= -lm -lrt
+LIBS += -lm -lrt
PROG = ptpd
SRCS = ptpd.c arith.c bmc.c protocol.c display.c\
@@ -63,7 +63,7 @@ TAGFILES = GPATH GRTAGS GSYMS GTAGS cscope.in.out cscope.out cscope.po.out
all: $(PROG)
$(PROG): $(OBJS)
- $(CC) -o $@ $(OBJS) $(LDFLAGS)
+ $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
$(OBJS): $(HDRS)
--
1.7.4
|