libgcc: use forceLibgccToBuildCrtStuff

This duplicates (by reference) the two-line adjustment to libgcc's
Makefile needed in order to get crtstuff to build without a full
build of gcc.
This commit is contained in:
Adam Joseph
2023-08-14 15:08:28 -07:00
parent 92186a49bf
commit da371c7c5a
@@ -45,9 +45,11 @@ in stdenvNoLibs.mkDerivation (finalAttrs: {
buildRoot=$(readlink -e "./build")
'';
postPatch = ''
sourceRoot=$(readlink -e "./libgcc")
'';
postPatch =
gcc.cc.passthru.forceLibgccToBuildCrtStuff
+ ''
sourceRoot=$(readlink -e "./libgcc")
'';
hardeningDisable = [ "pie" ];