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