* use -x instead of -s for stripping executables on darwin (-s worked fine on 10.0,

was broken on 10.1, fixed in 10.2 and worked fine till 10.4, and has been
    deprecated/removed in 10.5; conversely, -x has worked all the time, although it
    results in slightly bigger binaries on platforms that also support -s)

git-svn-id: trunk@9204 -
This commit is contained in:
Jonas Maebe 2007-11-11 19:43:41 +00:00
parent b7cce59ac7
commit 157fc2a3e9

View File

@ -588,7 +588,10 @@ begin
StaticStr:='-static';
end;
if (cs_link_strip in current_settings.globalswitches) then
StripStr:='-s';
if (target_info.system in systems_darwin) then
StripStr:='-x'
else
StripStr:='-s';
if (cs_link_smart in current_settings.globalswitches) and
(tf_smartlink_sections in target_info.flags) then