Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old September 12, 2017, 22:24   #11
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,520
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by skydyr View Post
Regarding this compiling problem with -r and -pie can't be used together, it seems that Debian and derivatives ship gcc6 with -pie enabled by default as a security feature. The flag has to be explicitly disabled with the -no-pie switch in order for the build to function properly.

I've been able to get it to compile by adding -no-pie to the linking command in src/Makefile after configuration as follows:

$(PROGNAME).o: $(OBJECTS)
$(LD) -no-pie -nostdlib -Wl,-r -o $@ $(OBJECTS)
@printf "%10s %-20s\n" LINK $@
I've done a fix in development (recommended by someone who seemed plausible at the time) to
Code:
$(PROGNAME).o: $(OBJECTS)
$(LD) -nostdlib -r -o $@ $(OBJECTS)
@printf "%10s %-20s\n" LINK $@
which seems to do the trick.
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some Sil issues fph Sil 12 January 4, 2013 00:41
Gear Issues Monkay AAR 1 February 25, 2012 17:32
Compilation issues. Tiburon Silverflame Development 8 March 1, 2010 20:34
DaJAngband Issues Prismatic Variants 12 February 15, 2010 15:08
Compiling Issues Gregian Vanilla 13 July 2, 2008 14:35


All times are GMT +1. The time now is 13:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.