mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 12:49:12 +02:00
* use use_section_smartlink instead of af_smartlink_sections
git-svn-id: trunk@2336 -
This commit is contained in:
parent
46c0fc3e7c
commit
0bbead8114
@ -125,7 +125,7 @@ implementation
|
||||
current_module.flags:=current_module.flags or uf_static_linked;
|
||||
|
||||
if (cs_create_smart in aktmoduleswitches) and
|
||||
not(af_smartlink_sections in target_asm.flags) then
|
||||
not use_smartlink_section then
|
||||
begin
|
||||
current_module.linkunitstaticlibs.add(current_module.staticlibfilename^,link_smart);
|
||||
current_module.flags:=current_module.flags or uf_smart_linked;
|
||||
|
@ -610,8 +610,7 @@ begin
|
||||
StaticStr:='-static';
|
||||
if (cs_link_strip in aktglobalswitches) then
|
||||
StripStr:='-s';
|
||||
if (af_smartlink_sections in target_asm.flags) and
|
||||
(tf_smartlink_sections in target_info.flags) then
|
||||
if use_smartlink_section then
|
||||
GCSectionsStr:='--gc-sections';
|
||||
If (cs_profile in aktmoduleswitches) or
|
||||
((Info.DynamicLinker<>'') and (not SharedLibFiles.Empty)) then
|
||||
|
@ -1054,8 +1054,7 @@ begin
|
||||
AsBinStr:=FindUtil(utilsprefix+'as');
|
||||
if RelocSection then
|
||||
RelocStr:='--base-file base.$$$';
|
||||
if (af_smartlink_sections in target_asm.flags) and
|
||||
(tf_smartlink_sections in target_info.flags) then
|
||||
if use_smartlink_section then
|
||||
GCSectionsStr:='--gc-sections';
|
||||
if target_info.system in [system_arm_wince,system_i386_wince] then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user