flint:first pisi rel

This commit is contained in:
blue-devil
2020-05-21 02:21:46 +03:00
parent 0e259c013f
commit 792fbcc631
4 changed files with 116 additions and 0 deletions
@@ -0,0 +1,17 @@
Description: invoke $(CC) with -r and not -Wl,-r to fix FTBFS with PIE enabled
Author: Logan Rosen <logan@ubuntu.com>
Forwarded: yes
diff --git a/Makefile.subdirs b/Makefile.subdirs
index ec05fb0..f2d8b37 100644
--- a/Makefile.subdirs
+++ b/Makefile.subdirs
@@ -59,7 +59,7 @@ $(BUILD_DIR)/$(MOD_DIR)_%.o: %.c
$(QUIET_CC) $(CC) $(CFLAGS) $(INCS) -c $< -o $@ -MMD -MP -MF "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$@"
$(MOD_LOBJ): $(LOBJS)
- $(QUIET_CC) $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
+ $(QUIET_CC) $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
-include $(LOBJS:.lo=.d)