Browse Source

* fixed "smart linking" parameters to llc

git-svn-id: trunk@35044 -
Jonas Maebe 8 years ago
parent
commit
876e5eab56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/llvm/agllvm.pas

+ 1 - 1
compiler/llvm/agllvm.pas

@@ -747,7 +747,7 @@ implementation
           optstr:=optstr+' -enable-unsafe-fp-math -enable-fp-mad -fp-contract=fast';
         { smart linking }
         if cs_create_smart in current_settings.moduleswitches then
-          optstr:=optstr+' -fdata-sections -fcode-sections';
+          optstr:=optstr+' -data-sections -function-sections';
         { pic }
         if cs_create_pic in current_settings.moduleswitches then
           optstr:=optstr+' -relocation-model=pic'