minimal-bootstrap.musl: enable gcc wrapper

+7 -3
+7 -3
pkgs/os-specific/linux/minimal-bootstrap/musl/default.nix
··· 35 35 36 36 passthru.tests.hello-world = result: 37 37 bash.runCommand "${pname}-simple-program-${version}" { 38 - nativeBuildInputs = [ gcc binutils ]; 38 + nativeBuildInputs = [ gcc binutils result ]; 39 39 } '' 40 40 cat <<EOF >> test.c 41 41 #include <stdio.h> ··· 44 44 return 0; 45 45 } 46 46 EOF 47 - gcc -static -B${result}/lib -I${result}/include -o test test.c 47 + musl-gcc -o test test.c 48 48 ./test 49 49 mkdir $out 50 50 ''; ··· 67 67 bash ./configure \ 68 68 --prefix=$out \ 69 69 --build=${buildPlatform.config} \ 70 - --host=${hostPlatform.config} 70 + --host=${hostPlatform.config} \ 71 + --syslibdir=$out/lib \ 72 + --enable-wrapper 71 73 72 74 # Build 73 75 make -j $NIX_BUILD_CORES 74 76 75 77 # Install 76 78 make -j $NIX_BUILD_CORES install 79 + sed -i 's|/bin/sh|${bash}/bin/bash|' $out/bin/* 80 + ln -s ../lib/libc.so $out/bin/ldd 77 81 ''