delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/13/03:51:38

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: <AANLkTi=MrFKWwRD9nkdH5tJe51o63iA__q70SKT9B1y2 AT mail DOT gmail DOT com> <20101012205527 DOT GA12942 AT ednor DOT casa DOT cgf DOT cx>
Date: Wed, 13 Oct 2010 09:51:08 +0200
Message-ID: <AANLkTikRkEjNPoJ2v1xJ34XuWviUrv95J0LJw5MV4=9M@mail.gmail.com>
Subject: Re: ld fails when -L/lib is on the command line
From: Csaba Raduly <rcsaba AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <object files> -L<lib_path_in_build_tree> -L/lib
>>-L/usr/lib <build_libs> <std_libs> -o .libs/cyg<lib>.dll
>>-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker
>>.libs/lib<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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019