Use the gold linker by default

This makes linking much faster!
This commit is contained in:
Andreas Schneider 2018-06-27 18:26:04 +02:00
parent e82a11f803
commit 0008208818

View File

@ -824,6 +824,9 @@ xzcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} -
# TODO: resolve underlinked python modules
export python_LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//g')"
# Use the gold linker
export LDFLAGS="%{__global_ldflags} -fuse-ld=gold"
%configure \
--enable-fhs \
--with-piddir=/run \