From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: Re: gcc-ddc Date: Mon, 20 Nov 2017 19:24:36 +0100 Message-ID: <871skskduj.fsf@gnu.org> References: 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]:53157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGqkN-0003Y4-NB for guix-devel@gnu.org; Mon, 20 Nov 2017 13:24:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGqkL-0003Mb-0D for guix-devel@gnu.org; Mon, 20 Nov 2017 13:24:43 -0500 In-Reply-To: (=?utf-8?Q?=22G=C3=A1bor?= Boskovits"'s message of "Mon, 20 Nov 2017 18:47:55 +0100") 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: =?utf-8?Q?G=C3=A1bor?= Boskovits Cc: guix-devel@gnu.org 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_PRE= FIX; > static const char *const standard_bindir_prefix =3D STANDARD_BINDIR_PREFI= X; 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 as= 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. This is a problem that other distros usually do not see (prefix=3D/usr). There is a 3rd option: not using this define in the code, but that might be theoretical/silly without having looked at it. If we manage to pass a different --prefix to configure (does this work? #:configure-flags=3D '("--prefix=3D/usr") then we still need to make sure that make install uses the prefix we want by writing our own install phase...it gets ugly here I guess... Greetings, janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com