From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100102 invoked by alias); 23 Feb 2017 06:19:34 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 100092 invoked by uid 89); 23 Feb 2017 06:19:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,KAM_LOTSOFHASH,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=614, ldl, H*r:Unknown, picks X-HELO: m69-170.mailgun.net Received: from m69-170.mailgun.net (HELO m69-170.mailgun.net) (166.78.69.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Feb 2017 06:19:32 +0000 X-Mailgun-Sending-Ip: 166.78.69.170 X-Mailgun-Sid: WyIwZTgzNyIsICJjcm9zc2djY0Bzb3VyY2V3YXJlLm9yZyIsICI0MGYiXQ== Received: from github.com (Unknown [192.30.252.40]) by mxa.mailgun.org with ESMTP id 58ae7ef3.7fa709d82ba0-smtp-out-n02; Thu, 23 Feb 2017 06:19:31 -0000 (UTC) Date: Thu, 23 Feb 2017 06:19:00 -0000 From: Alexey Neyman Reply-To: Alexey Neyman To: crossgcc@sourceware.org Message-ID: <58ae7ef2182bd_3533fd4593e7c3c170566@hookshot-fe6-cp1-prd.iad.github.net.mail> Subject: [crosstool-ng/crosstool-ng] 8397ad: Fix the build of elf2flt on Cygwin Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--==_mimepart_58ae7ef217ec3_3533fd4593e7c3c170416"; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00038.txt.bz2 ----==_mimepart_58ae7ef217ec3_3533fd4593e7c3c170416 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 1726 Branch: refs/heads/master Home: https://github.com/crosstool-ng/crosstool-ng Commit: 8397ad2c1a71992b441d73802f45be582c37b1e7 https://github.com/crosstool-ng/crosstool-ng/commit/8397ad2c1a71992b441d73802f45be582c37b1e7 Author: Alexey Neyman Date: 2017-02-22 (Wed, 22 Feb 2017) Changed paths: A patches/elf2flt/4820f0dbb77cd6564d5fa0817218fe2a1fb99f32/100-no-lcygwin.patch M scripts/build/binutils/binutils.sh Log Message: ----------- Fix the build of elf2flt on Cygwin The -lcygwin -lc actually breaks the build: elf2flt picks up the symbols for getopt/optarg via in binutils-X.Y/include, where optarg is declared without dllimport attribute. Therefore it pulls in getopt() from libc/libcygwin, but since optarg is not prefixed with _imp__, it is pulled from libiberty. But the object file in libiberty also contains getopt() thus resulting in multiple definitions thereof. While there, kill extraneous -ldl passed into configure - configure detects -ldl successfully. Upstream: https://github.com/uclinux-dev/elf2flt/pull/6 Signed-off-by: Alexey Neyman Commit: 85ae00c1a6331d7738abb406a1eb59091c8a4535 https://github.com/crosstool-ng/crosstool-ng/commit/85ae00c1a6331d7738abb406a1eb59091c8a4535 Author: Alexey Neyman Date: 2017-02-22 (Wed, 22 Feb 2017) Changed paths: A patches/elf2flt/4820f0dbb77cd6564d5fa0817218fe2a1fb99f32/100-no-lcygwin.patch M scripts/build/binutils/binutils.sh Log Message: ----------- Merge pull request #614 from stilor/elf2flt-cygwin Fix the build of elf2flt on Cygwin Compare: https://github.com/crosstool-ng/crosstool-ng/compare/4de4507a6519...85ae00c1a633 ----==_mimepart_58ae7ef217ec3_3533fd4593e7c3c170416--