![]() |
#1 |
Adept
Join Date: Nov 2014
Posts: 165
![]() |
Trouble compiling
I upgraded my system to Debian Testing and Angband won't compile anymore. The error I'm getting after make is this. Any idea what's causing it?
Code:
... /usr/bin/ld: -r and -pie may not be used together collect2: error: ld returned 1 exit status Makefile:34: recipe for target 'angband.o' failed make[3]: *** [angband.o] Error 1 ../mk/buildsys.mk:110: recipe for target 'all' failed make[2]: *** [all] Error 2 mk/buildsys.mk:115: recipe for target 'subdirs' failed make[1]: *** [subdirs] Error 2 mk/buildsys.mk:110: recipe for target 'all' failed make: *** [all] Error 2 |
![]() |
![]() |
![]() |
#2 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,865
Donated: $60
![]() |
Apparently it's a Debian thing, referred to in this post. Beyond that, I know nothing.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#3 | |
Veteran
Join Date: Apr 2007
Posts: 1,936
Donated: $40
![]() |
Quote:
Code:
$(PROGNAME).o: $(OBJECTS) $(LD) -nostdlib -Wl,-r -o $@ $(OBJECTS) @printf "%10s %-20s\n" LINK $@ Code:
$(LD) -nostdlib -no-pie -Wl,-r -o $@ $(OBJECTS)
__________________
takkaria whispers something about options. -more- |
|
![]() |
![]() |
![]() |
#4 |
Adept
Join Date: Nov 2014
Posts: 165
![]() |
Thanks. Sorted. Did autogen and configure. Then added -no-pie to CC-line in mk/buildsys.mk and did make. Now it compiles and all is well again
![]() |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
The trouble with tilesets | Zambaku | Vanilla | 10 | May 20, 2013 22:55 |
Trouble with Sauron | Sirridan | Vanilla | 13 | April 5, 2010 03:56 |
bugfixing trouble again.. | will_asher | Variants | 3 | September 10, 2009 03:37 |
Trouble Getting Home | orbs | AAR | 3 | March 24, 2008 06:01 |
Trouble compiling angband 3.0.9 on linux | RastaRuedi | Vanilla | 2 | August 1, 2007 18:28 |