diff --git a/src/tools/linker.sh b/src/tools/linker.sh index 5e1069687e2a0c8d75c35801f633b437ebffc384..203eef8efb14c8e3578579617e601795fabe2bbf 100755 --- a/src/tools/linker.sh +++ b/src/tools/linker.sh @@ -92,12 +92,8 @@ case $uname_s in # Extra stuff. For some reason one __LINKEDIT segment is # mapped just past the dynamic space. This messes things # up, so we move it to another address. This seems to be - # free, at least on 10.5. - - # Also specify the min version. (See Config.x86_darwin for - # the desired version.) This gets rid of a PIE warning - # when creating the executable on 10.8. (See ticket:112.) - + # free, at least on 10.5. -no_pie is to get rid of the + # linker warning about PIE. OPT_EXTRA="-segaddr __LINKEDIT 0x99000000 -rdynamic -Wl,-no_pie" OS_LIBS= ;; @@ -106,7 +102,7 @@ case $uname_s in # just after the dynamic space which messes things up, so # we move it to a diffferent address. The address below # appears to be free. - OPT_EXTRA="-segaddr __LINKEDIT 0x99000000 -mmacosx-version-min=10.4 -static-libgcc" + OPT_EXTRA="-segaddr __LINKEDIT 0x99000000 -static-libgcc" OS_LIBS="-lSystem -lc -lm" ;; esac