Re: ld fails when -L/lib is on the command line

2010-10-13 Thread Csaba Raduly
On Tue, Oct 12, 2010 at 10:55 PM, Christopher Faylor wrote: > On Tue, Oct 12, 2010 at 12:55:09PM -0500, Nathan Thern wrote: >>A complicated project I'm building fails on this call to gcc: >>gcc -shared -L -L/lib >>-L/usr/lib -o .libs/cyg.dll >>-Wl,--enable-auto-image-base -Xlinker --out-implib

Re: ld fails when -L/lib is on the command line

2010-10-12 Thread Christopher Faylor
On Tue, Oct 12, 2010 at 12:55:09PM -0500, Nathan Thern wrote: >A complicated project I'm building fails on this call to gcc: >gcc -shared -L -L/lib >-L/usr/lib -o .libs/cyg.dll >-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker >.libs/lib.dll.a You're going to have to clue us in on wh

ld fails when -L/lib is on the command line

2010-10-12 Thread Nathan Thern
A complicated project I'm building fails on this call to gcc: gcc -shared -L -L/lib -L/usr/lib -o .libs/cyg.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/lib.dll.a If I remove the -L/lib, the call succeeds. Using the -v option to gcc, I see that it's actually a call to /