Jan Nieuwenhuizen <jann...@gnu.org> writes: > Gábor Boskovits writes: > > Hey Gábor! > > [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 = STANDARD_EXEC_PREFIX; >> static const char *const standard_libexec_prefix = STANDARD_LIBEXEC_PREFIX; >> static const char *const standard_bindir_prefix = STANDARD_BINDIR_PREFIX; > > 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.
I’m just throwing this in, even though I suspect that it is a terrible 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