X Tutup
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ _pandoc=no
_curl=yes
_lld=no
_mold=no
_gold=yes
_gold=auto
# Default vkeybd/eventrec options
_vkeybd=no
_eventrec=no
Expand Down Expand Up @@ -2507,6 +2507,19 @@ else
define_in_config_if_yes yes 'NO_CXX11_ALIGNAS'
fi

# The Gold linker had known issues on at least i386 and ppc32, in some cases.
# Since this linker is not very maintained anymore, and since alternatives exist,
# avoid using it on non-mainstream archs, unless --enable-gold was explicitly given.
if test "$_gold" = auto; then
case $_host_cpu in
aarch64 | x86_64 | amd64)
;;
*)
_gold=no
;;
esac
fi

#
# Determine extra build flags for debug and/or release builds
#
Expand Down Expand Up @@ -2542,7 +2555,7 @@ if test "$_debug_build" != no; then
append_var LDFLAGS "-fuse-ld=mold"
append_var LDFLAGS "-Wl,--gdb-index"
echo_n -- " + Mold"
elif test "$_gold" = yes && cc_check_no_clean $debug_mode -gsplit-dwarf -fuse-ld=gold -Wl,--gdb-index; then
elif test "$_gold" != no && cc_check_no_clean $debug_mode -gsplit-dwarf -fuse-ld=gold -Wl,--gdb-index; then
append_var LDFLAGS "-fuse-ld=gold"
append_var LDFLAGS "-Wl,--gdb-index"
echo_n -- " + Gold"
Expand Down
Loading
X Tutup