From 6f76038c97bb617c96c1fd35ee75da35e7cdfdbc Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 4 Nov 2008 14:33:56 +0000 Subject: [PATCH] When testing for -dylib_install_name, we need to link into a shared library, not an executable. git-svn-id: https://svn.dealii.org/trunk@17468 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 2 +- deal.II/configure | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index b3c0dcb172..481a5bf438 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -1733,7 +1733,7 @@ AC_DEFUN(DEAL_II_CHECK_LINK_SONAME, dnl Now try the -dylib_install_name thing OLD_LDFLAGS=$LDFLAGS - LDFLAGS="-Wl,-dylib_install_name -Wl,libbase.so.6.2.1 $LDFLAGS" + LDFLAGS="-Wl,-dylib_install_name -Wl,libbase.so.6.2.1 $LDFLAGS -shared" AC_MSG_CHECKING([whether compiler understands option -Wl,-dylib_install_name]) AC_LINK_IFELSE( [ AC_LANG_PROGRAM([[]],[[]])], diff --git a/deal.II/configure b/deal.II/configure index c2d98035a8..c299d66003 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 17384 . +# From configure.in Revision: 17397 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for deal.II 6.2.pre. # @@ -11560,7 +11560,7 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ OLD_LDFLAGS=$LDFLAGS - LDFLAGS="-Wl,-dylib_install_name -Wl,libbase.so.6.2.1 $LDFLAGS" + LDFLAGS="-Wl,-dylib_install_name -Wl,libbase.so.6.2.1 $LDFLAGS -shared" { echo "$as_me:$LINENO: checking whether compiler understands option -Wl,-dylib_install_name" >&5 echo $ECHO_N "checking whether compiler understands option -Wl,-dylib_install_name... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF -- 2.39.5