ludo@gnu.org (Ludovic Courtès) skribis: > That way it would match GNU_USER_TARGET_LINK_SPEC in i386/gnu-user.h, > where -dynamic-linker appears within %{!static ... %{!shared ...}}. > > So, could you do: > > (define patched-gcc > (package > (inherit gcc-4.8) > (sources (origin (inherit (package-source gcc-4.8)) > (patches ...))))) > > build it, and then use it in the failed glibc build tree to rebuild > ld.so? > > > There are ways we could have worked around it, for instance by adding: > > (setenv "GUIX_LD_WRAPPER_DISABLE_RPATH" "yes") > > in the glibc recipe. I’m forgetting another possibility: fix ld-wrapper so that it doesn’t add “-rpath $(dirname ld.so)” when it encounters “-dynamic-linker ld.so”. This patch does that: