* wlib: Explicitly specify the smallest possible record align to reduce the size of .a files.

git-svn-id: trunk@46462 -
This commit is contained in:
yury 2020-08-16 17:08:00 +00:00
parent f72f021da4
commit 324deca817
2 changed files with 5 additions and 5 deletions

View File

@ -882,7 +882,7 @@ Implementation
if (target_ar.id in [ar_gnu_ar_scripted,ar_sdcc_sdar_scripted]) then
writeln(script, 'CREATE ' + current_module.staticlibfilename)
else { wlib case }
writeln(script,'-q -fo -c -b '+
writeln(script,'-q -p=16 -fo -c -b '+
maybequoted(current_module.staticlibfilename));
current := TCmdStrListItem(SmartLinkOFiles.First);
while current <> nil do
@ -1743,8 +1743,8 @@ Implementation
ar_watcom_wlib_omf_info : tarinfo =
( id : ar_watcom_wlib_omf;
addfilecmd : '+';
arfirstcmd : 'wlib -q -fo -c -b -n -o=$OUTPUTLIB $LIB $FILES';
arcmd : 'wlib -q -fo -c -b -o=$OUTPUTLIB $LIB $FILES';
arfirstcmd : 'wlib -q -p=16 -fo -c -b -n -o=$OUTPUTLIB $LIB $FILES';
arcmd : 'wlib -q -p=16 -fo -c -b -o=$OUTPUTLIB $LIB $FILES';
arfinishcmd : ''
);

View File

@ -100,8 +100,8 @@ interface
tarinfo = record
id : tar;
addfilecmd : string[10];
arfirstcmd : string[50];
arcmd : string[50];
arfirstcmd : string[60];
arcmd : string[60];
arfinishcmd : string[11];
end;