From: Sebastian Kemper Date: Sun, 26 Nov 2017 21:36:39 +0000 (+0100) Subject: restund: add patch to fix ld call X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=57f4d7fe0a7f4b356be00fd0f17a5d818e7435e0;p=feed%2Ftelephony.git restund: add patch to fix ld call ld expects '-shared' when called with '--export-dynamic'. Patch the Makefile accordingly. Signed-off-by: Sebastian Kemper --- 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)