Browse Source

Handle SPECIALLINK environment variable in the same way it was used in old Makefile.fpc

git-svn-id: trunk@32220 -
pierre 9 years ago
parent
commit
d25a768b1d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ide/fpmake.pp

+ 4 - 0
ide/fpmake.pp

@@ -201,6 +201,10 @@ begin
     if CompilerTarget = mipsel then
       P.Options.Add('-Fu../compiler/mips');
 
+    { Handle SPECIALLINK environment variable if available }
+    s:=GetEnvironmentVariable('SPECIALLINK');
+    if s<>'' then
+      P.Options.Add(s);
     P.Options.Add('-Sg');
     P.IncludePath.Add('compiler');