From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13507 invoked by alias); 12 Oct 2010 17:55:17 -0000 Received: (qmail 13494 invoked by uid 22791); 12 Oct 2010 17:55:15 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-px0-f171.google.com (HELO mail-px0-f171.google.com) (209.85.212.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Oct 2010 17:55:11 +0000 Received: by pxi17 with SMTP id 17so1510345pxi.2 for ; Tue, 12 Oct 2010 10:55:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.12.3 with SMTP id 3mr6674122wfl.187.1286906109404; Tue, 12 Oct 2010 10:55:09 -0700 (PDT) Received: by 10.220.185.134 with HTTP; Tue, 12 Oct 2010 10:55:09 -0700 (PDT) Date: Tue, 12 Oct 2010 17:55:00 -0000 Message-ID: Subject: ld fails when -L/lib is on the command line From: Nathan Thern To: cygwin Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2010-10/txt/msg00283.txt.bz2 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 /usr/lib/gcc/i686-pc-cygwin/4.3.4/collect2.exe (which claims to be ld.exe) that fails. Unfortunately, the gcc command is actually called from "libtool --mode=install", so can't see any way to expunge the offending -L/lib. How do I get this build to succeed? regards, NT P.S. Also, is this a bug in the gcc-4.3.4 linker, or is it some other problem? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple