From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: gcc-ddc Date: Mon, 20 Nov 2017 23:14:30 +0100 Message-ID: <87lgj0wqbd.fsf@elephly.net> References: <871skskduj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHGeR-0007id-02 for guix-devel@gnu.org; Tue, 21 Nov 2017 17:04:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHGeN-0007RP-SE for guix-devel@gnu.org; Tue, 21 Nov 2017 17:04:19 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21090) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eHGeN-0007R8-Ki for guix-devel@gnu.org; Tue, 21 Nov 2017 17:04:15 -0500 In-reply-to: <871skskduj.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Jan Nieuwenhuizen Cc: guix-devel@gnu.org Jan Nieuwenhuizen writes: > G=C3=A1bor Boskovits writes: > > Hey G=C3=A1bor! > > [cc: guix-devel] > >> I'm definietly making progress on this. Now I have a working debug build= of gcc. >> Identified the critical symbols, they are: > >> static const char *const standard_exec_prefix =3D STANDARD_EXEC_PREFIX; >> static const char *const standard_libexec_prefix =3D STANDARD_LIBEXEC_PR= EFIX; >> static const char *const standard_bindir_prefix =3D STANDARD_BINDIR_PREF= IX; > > Oh nice! > >> The problem fundamentally is that they are calculated from prefix passed= to configure. >> I've checked, that that is the store location. > > Right. > >> How should we go on with this? >> >> Is it possible to pass other value as prefix, or should we keep prefix a= s is, and patch the makefile? >> It is set from line 2092 in gcc/Makefile.in by the way. > > Good question. I think we should try patching the Makefile.in. I=E2=80=99m just throwing this in, even though I suspect that it is a terri= ble idea: we could replace these symbols with calls to getenv and provide the values at runtime with a separate wrapper that would be excluded in the comparison. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net