mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
configure: Unconditional gold; fix libtool+clang+ld.gold with -Wc argument.
This commit is contained in:
parent
a8e9b3d202
commit
52fc42c239
1 changed files with 7 additions and 9 deletions
16
configure.ac
16
configure.ac
|
@ -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])
|
||||
ld_gold="yes"
|
||||
])
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue