diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-08-16 12:31:40 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-08-18 18:37:57 -0400 |
commit | 989b844d7598fd71ffd76e00d8d1f5207d58fd61 (patch) | |
tree | 23883de9c049daf5bc32a95131d291c3309e96c6 /m4/fp_prog_ld_build_id.m4 | |
parent | 714c936fa31d83cb46b52d1dd920081474793a71 (diff) | |
download | haskell-989b844d7598fd71ffd76e00d8d1f5207d58fd61.tar.gz |
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.
Diffstat (limited to 'm4/fp_prog_ld_build_id.m4')
-rw-r--r-- | m4/fp_prog_ld_build_id.m4 | 20 |
1 files changed, 0 insertions, 20 deletions
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 - - |