mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 15:29:13 +02:00
* 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:
parent
b7cce59ac7
commit
157fc2a3e9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user