From: Wolfgang Bangerth Date: Mon, 31 Aug 2015 16:42:20 +0000 (-0500) Subject: Use gold instead of the traditional linker if possible. X-Git-Tag: v8.4.0-rc2~473^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f884cfdd647216205cffcfd741410ef6fd8722a;p=dealii.git Use gold instead of the traditional linker if possible. --- 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.