forked from auxolotl/labs
fix: don't use bash to call the builds allow them to infer from the shebang
This commit is contained in:
parent
f3a30ae07d
commit
3332f332b9
|
@ -109,7 +109,8 @@ in
|
||||||
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
||||||
export AR="tcc -ar"
|
export AR="tcc -ar"
|
||||||
export LD=tcc
|
export LD=tcc
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -133,7 +133,8 @@ in
|
||||||
export AR="tcc -ar"
|
export AR="tcc -ar"
|
||||||
export lt_cv_sys_max_cmd_len=32768
|
export lt_cv_sys_max_cmd_len=32768
|
||||||
export CFLAGS="-D__LITTLE_ENDIAN__=1"
|
export CFLAGS="-D__LITTLE_ENDIAN__=1"
|
||||||
bash ./configure ${builtins.concatStringsSep " " configureFlags}
|
chmod +x ./configure
|
||||||
|
./configure ${builtins.concatStringsSep " " configureFlags}
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
make -j $NIX_BUILD_CORES all-libiberty all-gas all-bfd all-libctf all-zlib all-gprof
|
make -j $NIX_BUILD_CORES all-libiberty all-gas all-bfd all-libctf all-zlib all-gprof
|
||||||
|
|
|
@ -89,7 +89,8 @@ in
|
||||||
cd bison-${cfg.version}
|
cd bison-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -101,7 +101,8 @@ in
|
||||||
# Configure
|
# Configure
|
||||||
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
||||||
export LD=tcc
|
export LD=tcc
|
||||||
bash ./configure ${builtins.concatStringsSep " " configureFlags}
|
chmod +x ./configure
|
||||||
|
./configure ${builtins.concatStringsSep " " configureFlags}
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
make -j $NIX_BUILD_CORES AR="tcc -ar" MAKEINFO="true"
|
make -j $NIX_BUILD_CORES AR="tcc -ar" MAKEINFO="true"
|
||||||
|
|
|
@ -90,7 +90,8 @@ in
|
||||||
# Configure
|
# Configure
|
||||||
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
||||||
export LD=tcc
|
export LD=tcc
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host}
|
--host=${platform.host}
|
||||||
|
|
|
@ -95,7 +95,8 @@ in
|
||||||
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
||||||
export AR="tcc -ar"
|
export AR="tcc -ar"
|
||||||
export LD=tcc
|
export LD=tcc
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host}
|
--host=${platform.host}
|
||||||
|
|
|
@ -68,7 +68,8 @@ in
|
||||||
export CC="tcc -B ${stage1.tinycc.mes.libs.package}/lib"
|
export CC="tcc -B ${stage1.tinycc.mes.libs.package}/lib"
|
||||||
export ac_cv_func_getpgrp_void=yes
|
export ac_cv_func_getpgrp_void=yes
|
||||||
export ac_cv_func_tzset=yes
|
export ac_cv_func_tzset=yes
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
|
|
|
@ -96,7 +96,8 @@ in
|
||||||
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
||||||
export AR="tcc -ar"
|
export AR="tcc -ar"
|
||||||
export LD=tcc
|
export LD=tcc
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host}
|
--host=${platform.host}
|
||||||
|
|
|
@ -200,7 +200,8 @@ in
|
||||||
export CFLAGS_FOR_TARGET="-Wl,-dynamic-linker -Wl,${stage1.musl.package}/lib/libc.so"
|
export CFLAGS_FOR_TARGET="-Wl,-dynamic-linker -Wl,${stage1.musl.package}/lib/libc.so"
|
||||||
export LIBRARY_PATH="${stage1.musl.package}/lib"
|
export LIBRARY_PATH="${stage1.musl.package}/lib"
|
||||||
|
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -162,7 +162,8 @@ in
|
||||||
export CPLUS_INCLUDE_PATH="$C_INCLUDE_PATH"
|
export CPLUS_INCLUDE_PATH="$C_INCLUDE_PATH"
|
||||||
export LIBRARY_PATH="${stage1.musl.package}/lib"
|
export LIBRARY_PATH="${stage1.musl.package}/lib"
|
||||||
|
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -163,7 +163,8 @@ in
|
||||||
export ac_cv_func_memcpy=yes
|
export ac_cv_func_memcpy=yes
|
||||||
export ac_cv_func_strerror=yes
|
export ac_cv_func_strerror=yes
|
||||||
|
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -167,7 +167,8 @@ in
|
||||||
export CPLUS_INCLUDE_PATH="$C_INCLUDE_PATH"
|
export CPLUS_INCLUDE_PATH="$C_INCLUDE_PATH"
|
||||||
export LIBRARY_PATH="${stage1.musl.package}/lib"
|
export LIBRARY_PATH="${stage1.musl.package}/lib"
|
||||||
|
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -88,7 +88,8 @@ in
|
||||||
cd m4-${cfg.version}
|
cd m4-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -104,7 +104,8 @@ in
|
||||||
# Configure
|
# Configure
|
||||||
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
||||||
export LD=tcc
|
export LD=tcc
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host}
|
--host=${platform.host}
|
||||||
|
|
|
@ -55,7 +55,8 @@ in
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
export CC="tcc -B ${stage1.tinycc.mes.libs.package}/lib"
|
export CC="tcc -B ${stage1.tinycc.mes.libs.package}/lib"
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
|
|
|
@ -98,7 +98,8 @@ in
|
||||||
cd tar-${cfg.version}
|
cd tar-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -59,7 +59,8 @@ in
|
||||||
export ac_cv_sizeof_unsigned_long=4
|
export ac_cv_sizeof_unsigned_long=4
|
||||||
export ac_cv_sizeof_long_long=8
|
export ac_cv_sizeof_long_long=8
|
||||||
export ac_cv_header_netdb_h=no
|
export ac_cv_header_netdb_h=no
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -118,7 +118,8 @@ in
|
||||||
src/misc/wordexp.c
|
src/misc/wordexp.c
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -98,7 +98,8 @@ in
|
||||||
src/misc/wordexp.c
|
src/misc/wordexp.c
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -107,7 +107,8 @@ in
|
||||||
export C_INCLUDE_PATH="${stage1.zlib.package}/include"
|
export C_INCLUDE_PATH="${stage1.zlib.package}/include"
|
||||||
export LIBRARY_PATH="${stage1.zlib.package}/lib"
|
export LIBRARY_PATH="${stage1.zlib.package}/lib"
|
||||||
export LD_LIBRARY_PATH="$LIBRARY_PATH"
|
export LD_LIBRARY_PATH="$LIBRARY_PATH"
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host}
|
--host=${platform.host}
|
||||||
|
|
|
@ -91,7 +91,8 @@ in
|
||||||
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
export CC="tcc -B ${stage1.tinycc.musl.libs.package}/lib"
|
||||||
export AR="tcc -ar"
|
export AR="tcc -ar"
|
||||||
export LD=tcc
|
export LD=tcc
|
||||||
bash ./configure \
|
chmod +x configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -86,7 +86,8 @@ in
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
export CC=musl-gcc
|
export CC=musl-gcc
|
||||||
bash ./configure --prefix=$out
|
chmod +x configure
|
||||||
|
./configure --prefix=$out
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
make -j $NIX_BUILD_CORES
|
make -j $NIX_BUILD_CORES
|
||||||
|
|
|
@ -97,7 +97,8 @@ in
|
||||||
cd bash-${cfg.version}
|
cd bash-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -123,7 +123,8 @@ in
|
||||||
${lib.strings.concatMapSep "\n" (file: "patch -Np1 -i ${file}") patches}
|
${lib.strings.concatMapSep "\n" (file: "patch -Np1 -i ${file}") patches}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure ${builtins.concatStringsSep " " configureFlags}
|
chmod +x ./configure
|
||||||
|
./configure ${builtins.concatStringsSep " " configureFlags}
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
make -j $NIX_BUILD_CORES
|
make -j $NIX_BUILD_CORES
|
||||||
|
|
|
@ -102,7 +102,8 @@ in
|
||||||
cd coreutils-${cfg.version}
|
cd coreutils-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure ${builtins.concatStringsSep " " configureFlags}
|
chmod +x ./configure
|
||||||
|
./configure ${builtins.concatStringsSep " " configureFlags}
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
make -j $NIX_BUILD_CORES
|
make -j $NIX_BUILD_CORES
|
||||||
|
|
|
@ -89,7 +89,8 @@ in
|
||||||
cd diffutils-${cfg.version}
|
cd diffutils-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -89,7 +89,8 @@ in
|
||||||
cd findutils-${cfg.version}
|
cd findutils-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -95,7 +95,8 @@ in
|
||||||
cd gawk-${cfg.version}
|
cd gawk-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -194,7 +194,8 @@ in
|
||||||
export CFLAGS_FOR_TARGET="-Wl,-dynamic-linker -Wl,${stage1.musl.package}/lib/libc.so"
|
export CFLAGS_FOR_TARGET="-Wl,-dynamic-linker -Wl,${stage1.musl.package}/lib/libc.so"
|
||||||
export LIBRARY_PATH="${stage1.musl.package}/lib"
|
export LIBRARY_PATH="${stage1.musl.package}/lib"
|
||||||
|
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -94,7 +94,8 @@ in
|
||||||
cd build
|
cd build
|
||||||
# libstdc++.so is built against musl and fails to link
|
# libstdc++.so is built against musl and fails to link
|
||||||
export CXX=false
|
export CXX=false
|
||||||
bash ../configure \
|
chmod +x ../configure
|
||||||
|
../configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -94,7 +94,8 @@ in
|
||||||
cd grep-${cfg.version}
|
cd grep-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -105,7 +105,8 @@ in
|
||||||
${lib.strings.concatMapSep "\n" (file: "patch -Np1 -i ${file}") patches}
|
${lib.strings.concatMapSep "\n" (file: "patch -Np1 -i ${file}") patches}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -90,7 +90,8 @@ in
|
||||||
cd patch-${cfg.version}
|
cd patch-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -96,7 +96,8 @@ in
|
||||||
cd sed-${cfg.version}
|
cd sed-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -95,7 +95,8 @@ in
|
||||||
cd tar-${cfg.version}
|
cd tar-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -88,7 +88,8 @@ in
|
||||||
cd gzip-${cfg.version}
|
cd gzip-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
|
@ -89,7 +89,8 @@ in
|
||||||
cd patchelf-${cfg.version}
|
cd patchelf-${cfg.version}
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
bash ./configure \
|
chmod +x ./configure
|
||||||
|
./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${platform.build} \
|
--build=${platform.build} \
|
||||||
--host=${platform.host} \
|
--host=${platform.host} \
|
||||||
|
|
Loading…
Reference in a new issue