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

git-svn-id: trunk@34190 -
This commit is contained in:
joost 2016-07-22 22:14:26 +00:00
parent c3ac426131
commit 05779cc64c

View File

@ -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;