Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!slxsys!ibmpcug!robobar!steve From: steve@robobar.co.uk (Steve Bleazard) Newsgroups: comp.unix.xenix Subject: Re: Xenix GCC/gcc.c -l option fails to order libraries correctly Message-ID: <1990May7.152419.20452@robobar.co.uk> Date: 7 May 90 15:24:19 GMT References: <1990May5.204319.7007@dallnix.uucp> Organization: Robobar Ltd., Perivale, Middx., ENGLAND. Lines: 18 In article <1990May5.204319.7007@dallnix.uucp> bob@dhw68k.cts.com (Bob Best) writes: > > Here's a minor quibble: [as of patch including #pragma pack support] > > If you try to force the linker to search Slibc.a before a local library > (say libfoo.a) using 'gcc -o foo -lc libfoo.a foo.o' you're out of luck... > gcc will pass libfoo.a to linker prior to Slibc.a. > This is a bug in the way I handled -l. The Xenix ld doesn't grok -l, so I had to modify the gcc driver. Unfortunately, I forgot about this case :-(. I'll fix this in the next patch kit. Steve. -- Steve.Bleazard@RoboBar.Co.Uk | Phone: +44 1 991 1142 x153 Snr Software Engineer, Robobar Ltd. | Fax: +44 1 998 8343 (G3) 22 Wadsworth Road, Perivale. | Middx., UB6 7JD ENGLAND. | ...!ukc!robobar!steve