From 3f884cfdd647216205cffcfd741410ef6fd8722a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 31 Aug 2015 11:42:20 -0500 Subject: [PATCH] Use gold instead of the traditional linker if possible. --- cmake/setup_compiler_flags_gnu.cmake | 5 +++++ cmake/setup_compiler_flags_intel.cmake | 7 ++++++- doc/news/changes.h | 11 ++++++++++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 9409c36cc8..e43680ccbf 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -54,6 +54,11 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-fpic") # ENABLE_IF_LINKS(DEAL_II_LINKER_FLAGS "-Wl,--as-needed") +# +# Use the 'gold' linker if possible, given that it's substantially faster. +# +ENABLE_IF_SUPPORTED(DEAL_II_LINKER_FLAGS "-fuse-ld=gold") + # # Setup various warnings: # diff --git a/cmake/setup_compiler_flags_intel.cmake b/cmake/setup_compiler_flags_intel.cmake index ecc2da5d72..62b3c9e6b8 100644 --- a/cmake/setup_compiler_flags_intel.cmake +++ b/cmake/setup_compiler_flags_intel.cmake @@ -1,6 +1,6 @@ ## --------------------------------------------------------------------- ## -## Copyright (C) 2012 - 2014 by the deal.II authors +## Copyright (C) 2012 - 2015 by the deal.II authors ## ## This file is part of the deal.II library. ## @@ -45,6 +45,11 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-fpic") # ENABLE_IF_LINKS(DEAL_II_LINKER_FLAGS "-Wl,--as-needed") +# +# Use the 'gold' linker if possible, given that it's substantially faster. +# +ENABLE_IF_SUPPORTED(DEAL_II_LINKER_FLAGS "-fuse-ld=gold") + # # Set ansi mode: # diff --git a/doc/news/changes.h b/doc/news/changes.h index 436510cd57..05ef18e423 100644 --- a/doc/news/changes.h +++ b/doc/news/changes.h @@ -114,14 +114,23 @@ inconvenience this causes.
    +
  1. Improved: When available, deal.II now uses the "gold" linker, a + reimplementation of the traditional Unix "ld" linker that is substantially + faster. This reduces build and, in particular, test turnaround times. +
    + (Wolfgang Bangerth, Matthias Maier, 2015/09/06) +
  2. +
  3. Improved: Allow continuation lines in ParameterHandler.
    (Alberto Sartori, 2015/09/04) +
  4. Fixed: VectorTools::integrate_difference for VectorTools::Hdiv_seminorm was computed incorrectly.
    (Timo Heister, 2015/08/31) +
  5. Improved: The testsuite now supports multiple comparison files. Apart from the main comparison file that ends in @@ -129,8 +138,8 @@ inconvenience this causes. [...].output.[string] are considered for comparison.
    (Matthias Maier, 2015/08/29) -
  6. +
  7. New: A class BlockLinearOperator has been introduced that extends the LinearOperator concept to block structures. A BlockLinearOperator can be sliced back to a LinearOperator. -- 2.39.5