From 989b844d7598fd71ffd76e00d8d1f5207d58fd61 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Tue, 16 Aug 2022 12:31:40 -0400 Subject: compiler: Drop --build-id=none hack Since 2011 the object-joining implementation has had a hack to pass `--build-id=none` to `ld` when supported, seemingly to work around a linker bug. This hack is now unnecessary and may break downstream users who expect objects to have valid build-ids. Remove it. Closes #22060. --- m4/fp_prog_ld_build_id.m4 | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 m4/fp_prog_ld_build_id.m4 (limited to 'm4') diff --git a/m4/fp_prog_ld_build_id.m4 b/m4/fp_prog_ld_build_id.m4 deleted file mode 100644 index e0a9ddd7b7..0000000000 --- a/m4/fp_prog_ld_build_id.m4 +++ /dev/null @@ -1,20 +0,0 @@ -# FP_PROG_LD_BUILD_ID -# ------------ -# Sets the output variable LdHasBuildId to YES if ld supports -# --build-id, or NO otherwise. -AC_DEFUN([FP_PROG_LD_BUILD_ID], -[ -AC_CACHE_CHECK([whether ld understands --build-id], [fp_cv_ld_build_id], -[echo 'int foo() { return 0; }' > conftest.c -${CC-cc} -c conftest.c -if ${LdCmd} -r --build-id=none -o conftest2.o conftest.o > /dev/null 2>&1; then - fp_cv_ld_build_id=yes -else - fp_cv_ld_build_id=no -fi -rm -rf conftest*]) -FP_CAPITALIZE_YES_NO(["$fp_cv_ld_build_id"], [LdHasBuildId]) -AC_SUBST([LdHasBuildId]) -])# FP_PROG_LD_BUILD_ID - - -- cgit v1.2.1