Răsfoiți Sursa

* only pass --gc-sections to the linker if smart linking is enabled
(mantis #24396)

git-svn-id: trunk@24465 -

Jonas Maebe 12 ani în urmă
părinte
comite
b16677a75b
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      compiler/systems/t_linux.pas

+ 2 - 1
compiler/systems/t_linux.pas

@@ -1062,7 +1062,8 @@ begin
    StripStr:='-s';
   if (cs_link_map in current_settings.globalswitches) then
    StripStr:='-Map '+maybequoted(ChangeFileExt(current_module.exefilename,'.map'));
-  if create_smartlink_sections then
+  if (cs_link_smart in current_settings.globalswitches) and
+     create_smartlink_sections then
    GCSectionsStr:='--gc-sections';
   If (cs_profile in current_settings.moduleswitches) or
      ((Info.DynamicLinker<>'') and (not SharedLibFiles.Empty)) then