mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 21:19:31 +02:00
* don't print a 'smart link requires external linker' warning in _any_ of the
following cases: 1) external linking is already enabled 2) target does not support an internal linker 3) the 'omit linking stage' option is used git-svn-id: trunk@27543 -
This commit is contained in:
parent
352f7cf47b
commit
015c3269a7
@ -2747,7 +2747,10 @@ begin
|
||||
if ((cs_link_smart in init_settings.globalswitches) or
|
||||
(cs_create_smart in init_settings.moduleswitches)) and
|
||||
(af_needar in target_asm.flags) and
|
||||
not (af_smartlink_sections in target_asm.flags) then
|
||||
not (af_smartlink_sections in target_asm.flags) and
|
||||
not (cs_link_extern in init_settings.globalswitches) and
|
||||
(target_info.link<>ld_none) and
|
||||
not (cs_link_nolink in init_settings.globalswitches) then
|
||||
begin
|
||||
Message(option_smart_link_requires_external_linker);
|
||||
include(init_settings.globalswitches,cs_link_extern);
|
||||
|
Loading…
Reference in New Issue
Block a user