mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 13:39:26 +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;
|
procedure TFPMakeRunnerArchive.Execute;
|
||||||
|
var
|
||||||
|
StoredLocalPrefix: string;
|
||||||
|
StoredGlobalPrefix: string;
|
||||||
begin
|
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;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user