Go Back   Angband Forums > Angband > Vanilla

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old September 12, 2017, 23:24   #11
Vanilla maintainer
Nick's Avatar
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,666
Donated: $60
Nick is on a distinguished road
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:

$(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
$(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 online now   Reply With Quote

Currently Active Users Viewing This Thread: 2 (0 members and 2 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 01:41
Gear Issues Monkay AAR 1 February 25, 2012 18:32
Compilation issues. Tiburon Silverflame Development 8 March 1, 2010 21:34
DaJAngband Issues Prismatic Variants 12 February 15, 2010 16:08
Compiling Issues Gregian Vanilla 13 July 2, 2008 15:35

All times are GMT +1. The time now is 06:45.

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