From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:34886) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRJ9L-0003Mm-3O for guix-patches@gnu.org; Wed, 22 Apr 2020 13:27:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRJ9K-0008Es-Nh for guix-patches@gnu.org; Wed, 22 Apr 2020 13:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRJ9K-0008EV-Al for guix-patches@gnu.org; Wed, 22 Apr 2020 13:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jRJ9K-0000hx-6P for guix-patches@gnu.org; Wed, 22 Apr 2020 13:27:02 -0400 Subject: [bug#40767] [PATCH] gnu: Add maradns. Resent-Message-ID: From: Mathieu Othacehe References: <20200422132922.9539-1-arunisaac@systemreboot.net> <87lfmnock3.fsf@gmail.com> <20200422150904.GN10788@E5400> Date: Wed, 22 Apr 2020 19:26:23 +0200 In-Reply-To: <20200422150904.GN10788@E5400> (Efraim Flashner's message of "Wed, 22 Apr 2020 18:09:04 +0300") Message-ID: <87v9lrxwhs.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Efraim Flashner Cc: Arun Isaac , 40767@debbugs.gnu.org > would (which "gcc") work when cross compiling? When cross-compiling the cross gcc is named target-gcc (aarch64-linux-gnu-gcc for instance), so (which "gcc") would return the native compiler, not the cross one. Note that when using autoconf/autotools, cross-compilation is working fine because we pass "--host=target" and it manages to find the native and cross-compiler from that. This issue only arises when raw Makefile are using hard-coded CC=gcc to build stuff. Thanks, Mathieu