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:
parent
830ac6d8ee
commit
57f4d7fe0a
1 changed files with 14 additions and 0 deletions
14
net/restund/patches/001-fix-linker-call.patch
Normal file
14
net/restund/patches/001-fix-linker-call.patch
Normal 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)
|
Loading…
Reference in a new issue