From 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 10 Oct 2014 03:20:04 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- .../ptpd/ptpd-2.2.0/ld-as-needed.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 meta-networking/recipes-daemons/ptpd/ptpd-2.2.0/ld-as-needed.patch (limited to 'meta-networking/recipes-daemons/ptpd/ptpd-2.2.0/ld-as-needed.patch') 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 @@ +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 +Bug-Debian: http://bugs.debian.org/607583 + +Signed-off-by: Jackie Huang +--- + 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 + -- cgit v1.2.3-54-g00ecf