delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/29/09:17:53

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=VgCchuEznWmgs5DK
DpMWucFqmHA+/t5T57FufJghWy/QpUM5b93g5sLYptMvAc3KsHcWBWsg7YH4m5Kr
1m3unT04s7a3AtAGGaMEJv7yPuDC6nWqGSxMtR+4DhwVNhMA2q0y6+SnXYd1d5uy
MCT5eUJzCajaSIMY4b2fmVEcMjc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=RbjWt6LMP94bCOjLCPm2zO
zzEBs=; b=qqs5wEx9sm1i17My1Ni78Jq7kpbGxkZ5OFfd7f+TcEZ0eaJNKN0ov+
vDFU+RBkgr7P/5YSWP+6JzdDGy5Sk1jKTP5Qw0MHeJSv5euS9STn/CaM80K+706i
eM80GlJmFtoK9gg1BJyYVm2e3J2oypYsKxh08b3xmYFsQR7oHp+IM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=
X-HELO: mail-it0-f52.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ix69Ciorc0iFts8pPica8laUtpOGicg+FERykZyn0wI=; b=Jh/aES57HeNqRw/sHxRO/jSJ5PVZ29RTXlp7RTHaCWiKe0RifhxdfCf63sPTXiqzIM weC8b/JXh9b+czl/+iCB/N9FYr4Vrw3DFCycJm6dAR6FFDv/N+vMwkyYhM13dVKDxJvy HGveBOhU+JB3z7OjkkcFMyzg4z874IfjFpafNi7E/jTnhab7mjFHuwA9gHy9p3TgNp63 ZTiW1FcHHeY7/7vuZlxyp9CwIw7WdvJku9AeB7NidttmdsvgpTImKKRtAOf6bv5nEx8m a5+W4S0K/I6C0kXXAd83fHHdn0vB5htKZ/ccOHdPwV9TFwRnN9mRJmCwqnJ78Xg69aZe fwNw==
X-Gm-Message-State: AE9vXwOL9qP5ahoQt4wFo4mOa8XYoyZ79JfVSXORPyyFVwaiYyl6i9cujsH8bcgoj3x+Jg==
X-Received: by 10.36.142.66 with SMTP id h63mr9445328ite.65.1472476646458; Mon, 29 Aug 2016 06:17:26 -0700 (PDT)
Subject: Re: x86_64-w64-mingw32-ld lib dir configuration issue
To: cygwin AT cygwin DOT com
References: <CACDsba3MD78H+zLsAR336OwUB4rSa6xr9MDBigqRHK=qaXvNNQ AT mail DOT gmail DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <57088b04-f912-1c31-545f-1ce1e16b651e@gmail.com>
Date: Mon, 29 Aug 2016 09:17:39 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <CACDsba3MD78H+zLsAR336OwUB4rSa6xr9MDBigqRHK=qaXvNNQ@mail.gmail.com>
X-IsSubscribed: yes

On 8/28/2016 10:06 PM, Whek rin wrote:
> The utility x86_64-w64-mingw32-ld from package mingw-x86_64-binutils
> cannot by default find libraries from the path
> /usr/x86_64-w64-mingw32/sysroot/mingw/lib, where the package
> mingw64-x86_64-runtime installs them. I believe this is a build
> configuration issue. I've attached a zip file which contains a test
> case which illustrates the issue. Inspect and run

Maybe but...

> build_hellotest_mingw.sh and it's output, in particular how it can't
> find e.g. libkernel32 without a -L argument to the correct location.
> I renamed the .zip to .z__ to get around the spam filters, you may
> need to rename it to open it.

If you're going to use ld directly then you shouldn't depend on defaults
regardless of the type of the library.  You should be using the
appropriate front end to do the linking but that doesn't mean you can't
use ld directly; use just have to do a lot more working to do the linking.

-- 
cyg Simple

--
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