From 3e5e8ebb7cf3fa6a21469a4ef3ea382e5c9319f8 Mon Sep 17 00:00:00 2001
From: Raymond Toy <toy.raymond@gmail.com>
Date: Sat, 10 Oct 2015 17:58:40 -0700
Subject: [PATCH] Remove -mmacosx-version-min=10.5

When making an executable on some random machine, we can't depend on
the user having the 10.5 SDK around.  So remove the flag, but add
-Wl,-no_pie to suppress the warning about PIE disabled due to absolute
addressing.
---
 src/tools/linker.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tools/linker.sh b/src/tools/linker.sh
index 0b2289086..5e1069687 100755
--- a/src/tools/linker.sh
+++ b/src/tools/linker.sh
@@ -98,7 +98,7 @@ case $uname_s in
 	    # the desired version.)  This gets rid of a PIE warning
 	    # when creating the executable on 10.8.  (See ticket:112.)
 
-	    OPT_EXTRA="-segaddr __LINKEDIT 0x99000000 -rdynamic -mmacosx-version-min=10.5"
+	    OPT_EXTRA="-segaddr __LINKEDIT 0x99000000 -rdynamic -Wl,-no_pie"
 	    OS_LIBS=
 	    ;;
 	powerpc)
-- 
GitLab