From df425339e0cf09ef687c491e99f6c10238f56b85 Mon Sep 17 00:00:00 2001 From: Raymond Toy <toy.raymond@gmail.com> Date: Sun, 30 Nov 2014 20:11:18 -0800 Subject: [PATCH] Fix ticket:112 by specifying -mmacosx-version-min=10.5 when linking the new executable. --- src/tools/linker.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tools/linker.sh b/src/tools/linker.sh index f97dcf455..a0050b94b 100755 --- a/src/tools/linker.sh +++ b/src/tools/linker.sh @@ -94,7 +94,11 @@ case $uname_s in # up, so we move it to another address. This seems to be # free, at least on 10.5. - OPT_EXTRA="-segaddr __LINKEDIT 0x99000000 -rdynamic" + # 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.) + + OPT_EXTRA="-segaddr __LINKEDIT 0x99000000 -rdynamic -mmacosx-version-min=10.5" ;; powerpc) # Nothing needed for ppc? -- GitLab