diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2024-01-08 12:45:51 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2024-01-10 13:22:08 +0100 |
commit | 5dd9e6ab3d6c2e50fcaba9dc1c81f11e5480c5eb (patch) | |
tree | 60b0e1b88ed431b19018d96fbcb2fe9f09a29dab | |
parent | 4e497682ddfac0552da520b328ba1f1d51ee9d89 (diff) | |
download | bootstrappable-toolchain-5dd9e6ab3d6c2e50fcaba9dc1c81f11e5480c5eb.tar.gz |
stage-0/binutils: Bootstrap with --enable-plugins=no
... to avoid linking libdl.
-rw-r--r-- | src/bootstrap/stage-0-binutils.TARGETS | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bootstrap/stage-0-binutils.TARGETS b/src/bootstrap/stage-0-binutils.TARGETS index 5740ddf..c4b0d51 100644 --- a/src/bootstrap/stage-0-binutils.TARGETS +++ b/src/bootstrap/stage-0-binutils.TARGETS @@ -32,17 +32,15 @@ , "export RANLIB=true" , "export MAKE=${LOCALBASE}/bin/make" , "export PATH=${LOCALBASE}/bin:$PATH" - , "export CFLAGS=\"${CFLAGS} $(cat flags/cflags) -I${TMPDIR}\"" , "unset LDFLAGS" - , "printf '#error fail here' > ${TMPDIR}/dlfcn.h # disable via fake header" , "cd src" - , "./configure --prefix=/ --disable-nls --enable-gprofng=no --disable-werror --enable-deterministic-archives --without-zstd >configure.log 2>&1 || (cat configure.log && exit 1)" + , "./configure --prefix=/ --disable-nls --enable-shared=no --enable-plugins=no --enable-gprofng=no --disable-werror --enable-deterministic-archives --without-zstd >configure.log 2>&1 || (cat configure.log && exit 1)" , "${MAKE} MAKEINFO=true all-binutils >build.log 2>&1 || true" , "cd binutils" , "AR_SRCS='ar.c arparse.c arlex.c arsup.c not-ranlib.c rename.c binemul.c emul_vanilla.c bucomm.c version.c filemode.c'" , "AR_DEPS=\"$(ls ../bfd/*.o ../libiberty/*.o ../zlib/*.o ../libsframe/*.o | LC_ALL=C sort)\"" - , "AR_CFLAGS=\"${CFLAGS} -DDEFAULT_AR_DETERMINISTIC=1 -Dbin_dummy_emulation=bin_vanilla_emulation -I../include -I../bfd\"" - , "${CC} ${AR_CFLAGS} -o ${DESTDIR}/bin/ar ${AR_SRCS} ${AR_DEPS} -ldl >../build.log 2>&1 || (cat ../configure.log ../build.log && exit 1)" + , "AR_CFLAGS=\"${CFLAGS} $(cat ../../flags/cflags) -DDEFAULT_AR_DETERMINISTIC=1 -Dbin_dummy_emulation=bin_vanilla_emulation -I../include -I../bfd\"" + , "${CC} ${AR_CFLAGS} -o ${DESTDIR}/bin/ar ${AR_SRCS} ${AR_DEPS} >../build.log 2>&1 || (cat ../configure.log ../build.log && exit 1)" ] , "outs": ["bin/ar"] } |