diff --git a/configure b/configure index b0c6ac0bc2f..6b59a888d49 100755 --- a/configure +++ b/configure @@ -376,6 +376,9 @@ linkerSupportsFlag() safe_flag=`shellEscape "$flag"` lflags=$lflags,$safe_flag done + if [ $CFG_USE_GOLD_LINKER = yes ]; then + lflags="-fuse-ld=gold $lflags" + fi compilerSupportsFlag $compiler $lflags }