From 57f4d7fe0a7f4b356be00fd0f17a5d818e7435e0 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 26 Nov 2017 22:36:39 +0100 Subject: [PATCH] restund: add patch to fix ld call ld expects '-shared' when called with '--export-dynamic'. Patch the Makefile accordingly. Signed-off-by: Sebastian Kemper --- net/restund/patches/001-fix-linker-call.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 net/restund/patches/001-fix-linker-call.patch diff --git a/net/restund/patches/001-fix-linker-call.patch b/net/restund/patches/001-fix-linker-call.patch new file mode 100644 index 0000000..abae86c --- /dev/null +++ b/net/restund/patches/001-fix-linker-call.patch @@ -0,0 +1,14 @@ +--- a/Makefile ++++ b/Makefile +@@ -99,9 +99,9 @@ all: $(MOD_BINS) $(BIN) + $(BIN): $(OBJS) + @echo " LD $@" + ifneq ($(GPROF),) +- @$(LD) $(LFLAGS) $(APP_LFLAGS) $^ ../re/libre.a $(LIBS) -o $@ ++ @$(LD) $(LFLAGS) $(SH_LFLAGS) $(APP_LFLAGS) $^ ../re/libre.a $(LIBS) -o $@ + else +- @$(LD) $(LFLAGS) $(APP_LFLAGS) $^ -L$(LIBRE_SO) -lre $(LIBS) -o $@ ++ @$(LD) $(LFLAGS) $(SH_LFLAGS) $(APP_LFLAGS) $^ -L$(LIBRE_SO) -lre $(LIBS) -o $@ + endif + + $(BUILD)/%.o: %.c $(BUILD) Makefile $(APP_MK)