]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use -dynamic -install_name instead of -dylib_install_name on Mac OS X.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 5 Nov 2008 20:09:09 +0000 (20:09 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 5 Nov 2008 20:09:09 +0000 (20:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@17478 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/common/Make.global_options.in
deal.II/configure

index 481a5bf438b3ec8cd0b37c4b8dd7feaa4f2483df..660c3cfe94dc43875374d0ee0bb15c2c7da51125 100644 (file)
@@ -1733,8 +1733,8 @@ 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 -shared"
-  AC_MSG_CHECKING([whether compiler understands option -Wl,-dylib_install_name])
+  LDFLAGS="-Wl,-dynamic,-install_name -Wl,libbase.so.6.2.1 $LDFLAGS -shared"
+  AC_MSG_CHECKING([whether compiler understands option -Wl,-dynamic,-install_name])
   AC_LINK_IFELSE(
    [ AC_LANG_PROGRAM([[]],[[]])],
    [ 
index f6ff549c68ad60e8f438396eeacd8c177ea3c1de..4c316eada2a8040fa973d3b8c12759dd73b4f247 100644 (file)
@@ -121,7 +121,7 @@ ifeq (@DEAL_II_LD_UNDERSTANDS_SONAME@,yes)
   DEAL_II_ADD_SONAME = -Wl,-soname,$(call DEAL_II_SHLIB_NAME,$(1))
 else
   ifeq (@DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME@,yes)
-    DEAL_II_ADD_SONAME = -Wl,-dylib_install_name -Wl,$(call DEAL_II_SHLIB_NAME,$(1))
+    DEAL_II_ADD_SONAME = -Wl,-dynamic,-install_name -Wl,$(call DEAL_II_SHLIB_NAME,$(1))
   else
     DEAL_II_ADD_SONAME = 
   endif
index c299d6600333584654b7597d27e604716c4bdcbe..73ddfd6dc17d912d702b3bfb5554a0a74c4db735 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 17397 .
+# From configure.in Revision: 17475 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for deal.II 6.2.pre.
 #
@@ -11493,7 +11493,7 @@ if test "x$enableshared" = "xyes" ; then
           ;;
   esac
 
-  case "${GXX-VERSION}" in
+  case "${GXX_VERSION}" in
     ibm_xlc* )
        SHLIBFLAGS="-qmkshrobj"
           ;;
@@ -11560,9 +11560,9 @@ 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 -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; }
+  LDFLAGS="-Wl,-dynamic,-install_name -Wl,libbase.so.6.2.1 $LDFLAGS -shared"
+  { echo "$as_me:$LINENO: checking whether compiler understands option -Wl,-dynamic,-install_name" >&5
+echo $ECHO_N "checking whether compiler understands option -Wl,-dynamic,-install_name... $ECHO_C" >&6; }
   cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
 _ACEOF

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.