restund: add patch to fix ld call
authorSebastian Kemper <[email protected]>
Sun, 26 Nov 2017 21:36:39 +0000 (22:36 +0100)
committerSebastian Kemper <[email protected]>
Sun, 26 Nov 2017 21:37:31 +0000 (22:37 +0100)
ld expects '-shared' when called with '--export-dynamic'. Patch the
Makefile accordingly.

Signed-off-by: Sebastian Kemper <[email protected]>
net/restund/patches/001-fix-linker-call.patch [new file with mode: 0644]

diff --git a/net/restund/patches/001-fix-linker-call.patch b/net/restund/patches/001-fix-linker-call.patch
new file mode 100644 (file)
index 0000000..abae86c
--- /dev/null
@@ -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)