A fix for the angband PIE FTBFS that does not disable PIE is attached.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Description: Fix the build with PIE as default
Use -r instead of -Wl,-r so that gcc no longer always
passes -r to ld.
.
-r and -pie cannot be used together in the linker,
and position independent is already relocatable.
Author: Adrian Bunk <[email protected]>
Bug-Debian: https://bugs.debian.org/837394
--- angband-3.5.1.orig/src/Makefile
+++ angband-3.5.1/src/Makefile
@@ -32,7 +32,7 @@ win/angband.res: win/angband.rc
$(RC) $< -O coff -o $@
angband.o: $(OBJECTS)
- $(LD) -nostdlib -Wl,-r -o $@ $(OBJECTS)
+ $(LD) -nostdlib -r -o $@ $(OBJECTS)
@printf "%10s %-20s\n" LINK $@
tests: angband.o