Browse Source

* Do not add the --prefix parameter when calling fpmake for building archives

git-svn-id: trunk@34190 -
joost 9 years ago
parent
commit
05779cc64c
1 changed files with 14 additions and 1 deletions
  1. 14 1
      packages/fppkg/src/pkgfpmake.pp

+ 14 - 1
packages/fppkg/src/pkgfpmake.pp

@@ -406,8 +406,21 @@ end;
 
 
 procedure TFPMakeRunnerArchive.Execute;
+var
+  StoredLocalPrefix: string;
+  StoredGlobalPrefix: string;
 begin
-  RunFPMake('archive');
+  // In most (all?) cases we do not want a prefix in the archive.
+  StoredGlobalPrefix := CompilerOptions.GlobalPrefix;
+  StoredLocalPrefix := CompilerOptions.LocalPrefix;
+  CompilerOptions.GlobalPrefix := '';
+  CompilerOptions.LocalPrefix := '';
+  try
+    RunFPMake('archive');
+  finally
+    CompilerOptions.GlobalPrefix := StoredGlobalPrefix;
+    CompilerOptions.LocalPrefix := StoredLocalPrefix;
+  end;
 end;