restund: add patch to fix ld call

ld expects '-shared' when called with '--export-dynamic'. Patch the
Makefile accordingly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
Sebastian Kemper 2017-11-26 22:36:39 +01:00
parent 830ac6d8ee
commit 57f4d7fe0a

View file

@ -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)