From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4858 invoked by alias); 17 Dec 2017 19:42:11 -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 3602 invoked by uid 89); 17 Dec 2017 19:42:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1943, H*r:Unknown, 2291, Home X-HELO: m71-131.mailgun.net Received: from m71-131.mailgun.net (HELO m71-131.mailgun.net) (166.78.71.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 17 Dec 2017 19:42:09 +0000 X-Mailgun-Sending-Ip: 166.78.71.131 X-Mailgun-Sid: WyIwZTgzNyIsICJjcm9zc2djY0Bzb3VyY2V3YXJlLm9yZyIsICI0MGYiXQ== Received: from github.com (Unknown [192.30.252.45]) by mxa.mailgun.org with ESMTP id 5a36c890.7f5884352c90-smtp-out-n02; Sun, 17 Dec 2017 19:42:08 -0000 (UTC) Date: Sun, 17 Dec 2017 19:42:00 -0000 From: Alexey Neyman Reply-To: Alexey Neyman To: crossgcc@sourceware.org Message-ID: <5a36c8908dbdd_39102ad72f5b3c144169d@hookshot-fe-8867ff3.cp1-iad.github.net.mail> Subject: [crosstool-ng/crosstool-ng] 70a158: Fix variables passing to gdb configure scripts Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--==_mimepart_5a36c8908d722_39102ad72f5b3c1441529"; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00019.txt.bz2 ----==_mimepart_5a36c8908d722_39102ad72f5b3c1441529 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 1937 Branch: refs/heads/master Home: https://github.com/crosstool-ng/crosstool-ng Commit: 70a1584e151832a347472cb557a72204777c95eb https://github.com/crosstool-ng/crosstool-ng/commit/70a1584e151832a347472cb557a72204777c95eb Author: Sergey Korolev Date: 2017-12-14 (Thu, 14 Dec 2017) Changed paths: M scripts/build/debug/300-gdb.sh Log Message: ----------- Fix variables passing to gdb configure scripts These changes mainly fix static linking errors when building static native gdb and gdbserver (tested with gcc 7.2.0 + uClibc-ng 1.0.27 + binutils 2.29.1 for MIPS): [ALL ] .../lib/libstdc++.a(eh_throw.o): In function `__cxa_throw': [ALL ] (.text.__cxa_throw+0x64): undefined reference to `_Unwind_RaiseException' [ALL ] (.text.__cxa_throw+0x6c): undefined reference to `_Unwind_RaiseException' [ALL ] .../lib/libstdc++.a(eh_throw.o): In function `__cxa_rethrow': [ALL ] (.text.__cxa_rethrow+0x78): undefined reference to `_Unwind_Resume_or_Rethrow' [ALL ] (.text.__cxa_rethrow+0x80): undefined reference to `_Unwind_Resume_or_Rethrow' ... The problem is in mixing of CPP, CC, CXX, and LD with CPPFLAGS, CFLAGS, CXXFLAGS, and LDFLAGS before passing to configure scripts. gcc is sensitive to argument order and the scripts are normally responsible to combine the variables in a proper way. Signed-off-by: Sergey Korolev Commit: 37caa3d4d7986e95e71fcfd102d3a02b08f8a6b8 https://github.com/crosstool-ng/crosstool-ng/commit/37caa3d4d7986e95e71fcfd102d3a02b08f8a6b8 Author: Alexey Neyman Date: 2017-12-17 (Sun, 17 Dec 2017) Changed paths: M scripts/build/debug/300-gdb.sh Log Message: ----------- Merge pull request #882 from ksergeyv/gdb-link Fix variables passing to gdb configure scripts Compare: https://github.com/crosstool-ng/crosstool-ng/compare/f2db6bff7cd9...37caa3d4d798 ----==_mimepart_5a36c8908d722_39102ad72f5b3c1441529--