mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 01:29:29 +02:00
* -s renamed to -S (build static lib)
* -s is now strip git-svn-id: trunk@1925 -
This commit is contained in:
parent
924265c0af
commit
44c892c717
@ -74,6 +74,7 @@ Var
|
||||
DestPath,
|
||||
PPLExt,
|
||||
LibExt : string;
|
||||
DoStrip,
|
||||
Batch,
|
||||
Quiet,
|
||||
MakeStatic : boolean;
|
||||
@ -478,7 +479,7 @@ begin
|
||||
else
|
||||
begin
|
||||
Err:=Shell(ldbin+' -shared -o '+OutputFile+' '+names+' '+libs)<>0;
|
||||
if not Err then
|
||||
if (not Err) and dostrip then
|
||||
Shell(stripbin+' --strip-unneeded '+OutputFile);
|
||||
end;
|
||||
If Err then
|
||||
@ -501,7 +502,7 @@ Procedure usage;
|
||||
Print usage and exit.
|
||||
}
|
||||
begin
|
||||
Writeln(paramstr(0),': [-qhwvbs] [-e ext] [-o name] [-d path] file [file ...]');
|
||||
Writeln(paramstr(0),': [-qhwvbsS] [-e ext] [-o name] [-d path] file [file ...]');
|
||||
Halt(0);
|
||||
end;
|
||||
|
||||
@ -520,6 +521,7 @@ begin
|
||||
ObjFiles:=Nil;
|
||||
Quiet:=False;
|
||||
Batch:=False;
|
||||
DoStrip:=False;
|
||||
OutputFile:='';
|
||||
PPLExt:='ppu';
|
||||
ArBin:='ar';
|
||||
@ -529,7 +531,7 @@ begin
|
||||
c:=Getopt (ShortOpts);
|
||||
Case C of
|
||||
EndOfOptions : break;
|
||||
's' : MakeStatic:=True;
|
||||
'S' : MakeStatic:=True;
|
||||
'o' : OutputFile:=OptArg;
|
||||
'd' : DestPath:=OptArg;
|
||||
'e' : PPLext:=OptArg;
|
||||
@ -539,6 +541,7 @@ begin
|
||||
LdBin:='ldw';
|
||||
end;
|
||||
'b' : Batch:=true;
|
||||
's' : DoStrip:=true;
|
||||
'?' : Usage;
|
||||
'h' : Usage;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user