Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ames!elroy.jpl.nasa.gov!zardoz.cpd.com!dhw68k!dallnix!bob From: bob@dallnix.uucp (Bob Best) Newsgroups: comp.unix.xenix Subject: Xenix GCC/gcc.c -l option fails to order libraries correctly Message-ID: <1990May5.204319.7007@dallnix.uucp> Date: 5 May 90 20:43:19 GMT Reply-To: bob@dhw68k.cts.com (Bob Best) Organization: Dallnix Computing, Orange County, CA Lines: 14 Xenix GCC works great..Hats off to Steve Bleazard 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. C News in fact uses this trick in libstdio/Makefile...the result being that stdiock.stock and stdiock.fast are identical unless you modify the Makefile. Of course, stiock.fast fails on my Xenix 386. :-) -- Bob Best bob@dhw68k.cts.com