mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 13:59:47 +02:00
* Do not add the --prefix parameter when calling fpmake for building archives
git-svn-id: trunk@34190 -
This commit is contained in:
parent
c3ac426131
commit
05779cc64c
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user