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