0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

configure: Unconditional gold; fix libtool+clang+ld.gold with -Wc argument.

This commit is contained in:
Jason Volk 2020-03-10 21:56:59 -07:00
parent a8e9b3d202
commit 52fc42c239

View file

@ -458,15 +458,12 @@ dnl
dnl Gold linker
dnl
AC_MSG_CHECKING(whether to explicitly disable the gold linker)
AC_ARG_ENABLE(gold, AC_HELP_STRING([--disable-ld-gold], [Disable defaulting to the gold linker.]),
[
AC_MSG_RESULT([yes])
ld_gold="no"
], [
AC_MSG_RESULT([no])
dnl Sorry there is no way to disable gold right now. You can try the
dnl binutils-gold package if your binutils package doesn't ship with it
dnl by default these days. Not sure if this is a problem with musl; please
dnl report any issues so we can weigh the need to change course here.
dnl
ld_gold="yes"
])
AM_CONDITIONAL([LD_GOLD], [[[[ $ld_gold = "yes" ]]]])
@ -481,6 +478,7 @@ AM_COND_IF([LD_GOLD],
AM_COND_IF([CLANG],
[
LDFLAGS+=" -fuse-ld=gold"
LDFLAGS+=" -Wc,-fuse-ld=gold"
])
LDFLAGS+=" -Wl,--warn-common"