>> Can anyone recommend either a clean way to perform the ltmain.sh >> surgery at bootstrap? > > Most needed surgery at bootstrap can be done by having a ./bootstrap > script that contains...
Thanks Ralf! In case anyone stumbles upon the same libtool -fopenmp problem, per Ralf's suggestion my bootstrap looks as follows: #! /bin/sh # $Id$ set -e # Fail on first error autoreconf -v -i echo echo ------------------------------------------------------------------------- echo Binaries linked against libsuzerain.la run into linker problems because echo current versions of libtool do not preserve OpenMP flags. Workaround per echo http://lists.gnu.org/archive/html/bug-libtool/2011-03/msg00015.html. echo ------------------------------------------------------------------------- echo patch -p0 -N --verbose <<\EOF --- build-aux/ltmain.sh +++ build-aux/ltmain.sh @@ -5643,7 +5643,7 @@ continue ;; + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=omp) - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" @@ -6147,7 +6147,7 @@ lib= found=no case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=omp) - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" EOF -- Rhys