From c7410758b7e10ecdea49e91641eb6989a8d3d807 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 29 Nov 2006 16:17:01 +0000 Subject: [PATCH] Add -bind_at_load to LDFLAGS git-svn-id: https://svn.dealii.org/trunk@14216 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 6 +++++- deal.II/configure | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 5c0ed9aa4a..227c270966 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -473,10 +473,14 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl dnl Some system specific things case "$target" in - dnl Use -Wno-long-long on Apple Darwin to avoid some unnecessary warning + dnl Use -Wno-long-long on Apple Darwin to avoid some unnecessary warning. + dnl Also use -bind_at_load as a linker flag because sometimes the + dnl linker complains about __divdi3 being available from both libgcc + dnl as well as from libg2c *apple-darwin*) CXXFLAGSG="$CXXFLAGSG -Wno-long-double" CXXFLAGSO="$CXXFLAGSO -Wno-long-double" + LDFLAGS="$LDFLAGS -bind_at_load" ;; dnl On DEC OSF, including both stdio.h and unistd.h causes a warning diff --git a/deal.II/configure b/deal.II/configure index d8428ae863..0c93e1a2b8 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 14038 . +# From configure.in Revision: 14184 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for deal.II 5.3.pre. # @@ -3354,9 +3354,10 @@ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi case "$target" in - *apple-darwin*) + *apple-darwin*) CXXFLAGSG="$CXXFLAGSG -Wno-long-double" CXXFLAGSO="$CXXFLAGSO -Wno-long-double" + LDFLAGS="$LDFLAGS -bind_at_load" ;; *dec-osf*) -- 2.39.5