mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-27 21:39:34 +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;
|
current_module.flags:=current_module.flags or uf_static_linked;
|
||||||
|
|
||||||
if (cs_create_smart in aktmoduleswitches) and
|
if (cs_create_smart in aktmoduleswitches) and
|
||||||
not(af_smartlink_sections in target_asm.flags) then
|
not use_smartlink_section then
|
||||||
begin
|
begin
|
||||||
current_module.linkunitstaticlibs.add(current_module.staticlibfilename^,link_smart);
|
current_module.linkunitstaticlibs.add(current_module.staticlibfilename^,link_smart);
|
||||||
current_module.flags:=current_module.flags or uf_smart_linked;
|
current_module.flags:=current_module.flags or uf_smart_linked;
|
||||||
|
@ -610,8 +610,7 @@ begin
|
|||||||
StaticStr:='-static';
|
StaticStr:='-static';
|
||||||
if (cs_link_strip in aktglobalswitches) then
|
if (cs_link_strip in aktglobalswitches) then
|
||||||
StripStr:='-s';
|
StripStr:='-s';
|
||||||
if (af_smartlink_sections in target_asm.flags) and
|
if use_smartlink_section then
|
||||||
(tf_smartlink_sections in target_info.flags) then
|
|
||||||
GCSectionsStr:='--gc-sections';
|
GCSectionsStr:='--gc-sections';
|
||||||
If (cs_profile in aktmoduleswitches) or
|
If (cs_profile in aktmoduleswitches) or
|
||||||
((Info.DynamicLinker<>'') and (not SharedLibFiles.Empty)) then
|
((Info.DynamicLinker<>'') and (not SharedLibFiles.Empty)) then
|
||||||
|
@ -1054,8 +1054,7 @@ begin
|
|||||||
AsBinStr:=FindUtil(utilsprefix+'as');
|
AsBinStr:=FindUtil(utilsprefix+'as');
|
||||||
if RelocSection then
|
if RelocSection then
|
||||||
RelocStr:='--base-file base.$$$';
|
RelocStr:='--base-file base.$$$';
|
||||||
if (af_smartlink_sections in target_asm.flags) and
|
if use_smartlink_section then
|
||||||
(tf_smartlink_sections in target_info.flags) then
|
|
||||||
GCSectionsStr:='--gc-sections';
|
GCSectionsStr:='--gc-sections';
|
||||||
if target_info.system in [system_arm_wince,system_i386_wince] then
|
if target_info.system in [system_arm_wince,system_i386_wince] then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user