From 00082088188c7e943ddf7d2d4964a09f4bcecaa6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 27 Jun 2018 18:26:04 +0200 Subject: [PATCH] Use the gold linker by default This makes linking much faster! --- samba.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samba.spec b/samba.spec index 8e303ce..52fa62f 100644 --- a/samba.spec +++ b/samba.spec @@ -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 \