Xenix GCC/gcc.c -l option fails to order libraries correctly

Bob Best bob at dallnix.uucp
Sun May 6 06:43:19 AEST 1990


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 at dhw68k.cts.com



More information about the Comp.unix.xenix mailing list