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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; q=dns; s=default; b=ZK6fc7 xV8Yyu6h1FcHKAbDV2+P0p0/vPLEX7W+G6EWDkV/4E8j0JPFJ62Ug0+4JNXQW14A elyR835dVjp08ceFckOsJJxLiCXcUL5CFlewA5H40WSuh7bS2GqjN0AAVupOIjFI OJYEGudEN5gj0fwTKiPQtAMZd9wfQw55/YG4Y= 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; s=default; bh=3Vmj8FVSKZRJ 5ULjrJoFYujMFDY=; b=AyzzwjvLJKCKL5+d0RIuxZYWgYecB+l1eMNVtN8u3Pk8 oaRqdFgBlHl5ICSpgmVqJhEujbNKlOpPvVv6CRQajyCmW/bZZHToPJ16KDqS4alo i8Y+b0sP3clCmksFuub41gVEXVWpDNn+DHMv6tUAGIobU7/TeOqQLGKbnyq4k4k= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Whek, rin, whek, H*i:CACDsba3MD78H X-HELO: mail-pf0-f173.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=FsnP+pYZNZ3tZqxGE6kp7jtgIj1LrDf28+GHwUGmUL8=; b=cRRZGzbWJGd5ySCG2baj6FTOvVoERlBMRqyuEri3foO1hJEZAQqWgi+ZJS1oTm6tr7 DGwYperX195aFWrqWisMGB+GZ4bZvDHNbtNX/V79tzsaJVwEj66q8zBYJ+TfsVTnHgLR 7i5rgWt1jTxhMOSKczO2i54zCScwyBHys+qTV/PFjV8i0J+aq2QRvGO0lGk3sW+M7CBX wkxqpGEJUy8G3fFLYRIVpJGixv5H/SygiRaWZ8g5wjUfvyjBLI+K3LUAMg7q8PlwB+tm 5KlLfSzyTuSqUDErltZWtmmVjJawg3lD22mmi9jak/JMA3WYJXQpe79G+V2xw3x6Zg1M VuHw== X-Gm-Message-State: AE9vXwO1TRlseb40mia+GeVAsPqbCkjEz/eO7VfED2z3z+BEf1pOtx989jHKjQ5y05Tghg== X-Received: by 10.98.34.151 with SMTP id p23mr31971871pfj.102.1472471001006; Mon, 29 Aug 2016 04:43:21 -0700 (PDT) Message-ID: <57C41FCE.8040304@gmail.com> Date: Mon, 29 Aug 2016 19:43:10 +0800 From: JonY <10walls AT gmail DOT com> User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:25.4) Gecko/20150524 FossaMail/25.1.5 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: x86_64-w64-mingw32-ld lib dir configuration issue References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3JTCrkOOlgngG3EHx98cAwEcIgeLu1Urp" X-IsSubscribed: yes --3JTCrkOOlgngG3EHx98cAwEcIgeLu1Urp Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 8/29/2016 10:06, 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 > 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. > Thanks, Matt >=20 Though I agree that this is a path search bug that should be fixed, please do not abuse ld by using it directly. Use the frontend driver instead. --3JTCrkOOlgngG3EHx98cAwEcIgeLu1Urp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJXxB/VAAoJEHE7X+KcFF1FrycP/iG8KnslBuKFlyGuJcNK7nSU p60bTlMzJibQGMTH2ZppX1Q0ffgbpec6SifR+xyvzOGbfEMW73XnZbHx/0HON1ZL dXmdsygi01o+bxhYbpEPnGJIbTxpV0XtZ82ZaZ/znN8cMt77p06oPEDpALlQ+lv8 iZaAaC3x9A4HYucDhuTcUjJ7u3WxlgNuNZm3MNQn2D3RSrawToOCPhbrrxnXK1yU 9DG8VwE4yIlgY54FlxNNzKjbkOBK5kVmRUfE5sFzE+5IoaM6a6rM0LjpG12B+nll eyOyqrAkG2sajqkpz4A/40VNAxCUsEEp/9FEgVzVl0tfeauw/oI6mL1tweC0rXHR D9ZvKbWms3p/vqZlkanSqxZrslhjUN3AnRqingic2hyKThmbWzUtmq3CS4hiUebH CWttLnefWgUad2ASLaOSqMVm86BqBlV1RPcdO7POayomSyXjtC7iV60jeikfFL39 FVBmkZIbQ378YzwbH1EOlYv+cUcMXRXpPoHqFKmNwS3pRYIfzLM3ev3/3KkOfuHZ rh08zpDLU2TcUIjRlqXCVyoefuIXYTtwQcioc576nQlkU5/lG06pRMNldwk5SEkB hgchnXeo6/cUDDBNG6vbs6mppwXy1HqRKWJfJDj56nepydefEor9fyw/PCDugd/j KN9Sk9uEEYrqTk3n0K5D =iRz3 -----END PGP SIGNATURE----- --3JTCrkOOlgngG3EHx98cAwEcIgeLu1Urp--