gcc: Try to fix /bin/sh dependency

This commit is contained in:
Shea Levy 2018-03-16 16:47:24 -04:00
parent 86972b2321
commit a5d064826b
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27
1 changed files with 7 additions and 2 deletions

View File

@ -214,7 +214,12 @@ stdenv.mkDerivation ({
--replace "-install_name \\\$rpath/\\\$soname" "-install_name $lib/lib/\\\$soname"
'';
postPatch =
postPatch = ''
configureScripts=$(find . -name configure)
for configureScript in $configureScripts; do
patchShebangs $configureScript
done
'' + (
if (hostPlatform.isHurd
|| (libcCross != null # e.g., building `gcc.crossDrv'
&& libcCross ? crossConfig
@ -273,7 +278,7 @@ stdenv.mkDerivation ({
sed -i gcc/config/linux.h -e '1i#undef LOCAL_INCLUDE_DIR'
''
)
else null;
else "");
# TODO(@Ericson2314): Make passthru instead. Weird to avoid mass rebuild,
crossStageStatic = targetPlatform == hostPlatform || crossStageStatic;