X-Recipient: archive-cygwin AT delorie DOT com 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,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20101012205527.GA12942@ednor.casa.cgf.cx> References: <20101012205527 DOT GA12942 AT ednor DOT casa DOT cgf DOT cx> Date: Wed, 13 Oct 2010 09:51:08 +0200 Message-ID: Subject: Re: ld fails when -L/lib is on the command line From: Csaba Raduly To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 -Xlinker >>.libs/lib.dll.a > > You're going to have to clue us in on what "fails" means in this context. In other words, we need the error message. Check the makefile. My suspicion is that there is a -L$(SOME_VARIABLE)/lib there, but the variable is not defined and so it's expanded to empty. -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ L w++$ tv+ b++ DI D++ 5++ Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds "People disagree with me. I just ignore them." -- Linus Torvalds -- 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