flint-pie-hardening-conflict.patch 615 B

123456789101112131415161718
  1. Description: invoke $(CC) with -r and not -Wl,-r to fix FTBFS with PIE enabled
  2. Author: Logan Rosen <logan@ubuntu.com>
  3. Forwarded: yes
  4. diff --git a/Makefile.subdirs b/Makefile.subdirs
  5. index ec05fb0..f2d8b37 100644
  6. --- a/Makefile.subdirs
  7. +++ b/Makefile.subdirs
  8. @@ -59,7 +59,7 @@ $(BUILD_DIR)/$(MOD_DIR)_%.o: %.c
  9. $(QUIET_CC) $(CC) $(CFLAGS) $(INCS) -c $< -o $@ -MMD -MP -MF "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$@"
  10. $(MOD_LOBJ): $(LOBJS)
  11. - $(QUIET_CC) $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
  12. + $(QUIET_CC) $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
  13. -include $(LOBJS:.lo=.d)