From patchwork Mon Nov 10 10:46:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Utzig X-Patchwork-Id: 3633 Received: (qmail 5024 invoked by alias); 10 Nov 2014 10:46:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 5006 invoked by uid 89); 10 Nov 2014 10:46:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f173.google.com Received: from mail-ie0-f173.google.com (HELO mail-ie0-f173.google.com) (209.85.223.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 10 Nov 2014 10:46:19 +0000 Received: by mail-ie0-f173.google.com with SMTP id tr6so8867706ieb.4 for ; Mon, 10 Nov 2014 02:46:17 -0800 (PST) X-Received: by 10.50.117.71 with SMTP id kc7mr23784330igb.35.1415616377188; Mon, 10 Nov 2014 02:46:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.28.208 with HTTP; Mon, 10 Nov 2014 02:46:00 -0800 (PST) From: Filipe Utzig Date: Mon, 10 Nov 2014 08:46:00 -0200 Message-ID: Subject: [PATCH] Fix cross-compiling with static linking in gdbserver Makefile.in To: gdb-patches The Makefile.in of gdbserver is written to use gcc instead ${CC} when you choose to compile the target with libraries linked statically. In fact is not a bug itself, but the comment says to set that line if you want/need to compile with the -static flag, and I saw some users having troubles with this, so I believe that's a good idea do the comment in the right way. This patch should fix that. From f9d4369866dc3551d01df8b160e9d75b3e220f7d Mon Sep 17 00:00:00 2001 From: Filipe Franciel Utzig Date: Mon, 3 Nov 2014 10:55:41 -0200 Subject: [PATCH] Fix cross-compiling static linked build --- gdb/gdbserver/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index 8b0318a..c2ef44c 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -78,7 +78,7 @@ VPATH = @srcdir@ # Set this up with gcc if you have gnu ld and the loader will print out # line numbers for undefinded refs. -#CC-LD=gcc -static +#CC-LD=${CC} -static CC-LD=${CC} # Where is the "include" directory? Traditionally ../include or ./include -- 1.9.1