diff --git a/compiler/link.pas b/compiler/link.pas index 135f21bcc4..f34fe79e6e 100644 --- a/compiler/link.pas +++ b/compiler/link.pas @@ -1571,9 +1571,16 @@ Implementation arfinishcmd : 'gar s $LIB' ); + ar_watcom_wlib_omf_info : tarinfo = + ( id : ar_watcom_wlib_omf; + arcmd : 'wlib -fo -c $LIB $FILES'; + arfinishcmd : '' + ); + initialization RegisterAr(ar_gnu_ar_info); RegisterAr(ar_gnu_ar_scripted_info); RegisterAr(ar_gnu_gar_info); + RegisterAr(ar_watcom_wlib_omf_info); end. diff --git a/compiler/systems.inc b/compiler/systems.inc index d1485d7e90..db8b4fa2e8 100644 --- a/compiler/systems.inc +++ b/compiler/systems.inc @@ -202,6 +202,7 @@ ,ar_mpw_ar ,ar_gnu_ar_scripted ,ar_gnu_gar + ,ar_watcom_wlib_omf ); tres = (res_none diff --git a/compiler/systems/i_msdos.pas b/compiler/systems/i_msdos.pas index 8460f12e87..87b9395cb2 100644 --- a/compiler/systems/i_msdos.pas +++ b/compiler/systems/i_msdos.pas @@ -65,7 +65,7 @@ unit i_msdos; assemextern : as_i386_nasmobj; link : nil; linkextern : nil; - ar : ar_gnu_ar; + ar : ar_watcom_wlib_omf; res : res_none; dbg : dbg_stabs; script : script_dos;