]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4: Add new variable, inherit_rpath, if the
authorAlbert Chin-A-Young <china@thewrittenword.com>
Wed, 24 Mar 2004 03:12:21 +0000 (03:12 +0000)
committerScott James Remnant <scott@netsplit.com>
Wed, 24 Mar 2004 03:12:21 +0000 (03:12 +0000)
* m4/libtool.m4: When linking convenience libraries on Solaris

ChangeLog
m4/libtool.m4

index 81ed1eece852f265f2be3d6fbfe1a2dd44f98f7f..71c251f81da9d4d70098dcf462f040e35427a941 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2004-03-24  Albert Chin-A-Young  <china@thewrittenword.com>
 
-       * libtool.m4: When linking convenience libraries on Solaris
+       * m4/libtool.m4: Add new variable, inherit_rpath, if the
+        RPATHs of the libraries being linked are inherited in
+        the output file. For systems with a linker exhibiting
+        this feature, programs/libraries must be relinked at
+        installation time.
+
+       * m4/libtool.m4: When linking convenience libraries on Solaris
        with the Sun C++ compiler, pass convenience libraries through
        to the linker with -Qoption between allextract/defaultextract.
        The Sun C++ compiler bundles -Qoption arguments so
index 5346bf4c459dd983279eb023120b8513e4dffec4..ecc8ce7f257be230fbc225017d3855b1bf47f205 100644 (file)
@@ -1490,7 +1490,8 @@ else
 fi
 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
-if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
+if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink ||
+   test "$_LT_AC_TAGVAR(inherit_rpath, $1)" = yes; then
   # Fast installation is not supported
   enable_fast_install=no
 elif test "$shlibpath_overrides_runpath" = yes ||
@@ -3400,6 +3401,7 @@ m4_if([$1], [CXX], [
   _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
   _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
   _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+  _LT_AC_TAGVAR(inherit_rpath, $1)=no
   _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
   _LT_AC_TAGVAR(module_cmds, $1)=
   _LT_AC_TAGVAR(module_expsym_cmds, $1)=
@@ -3913,6 +3915,7 @@ _LT_EOF
       fi
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+      _LT_AC_TAGVAR(inherit_rpath, $1)=yes
       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
       ;;
 
@@ -4238,6 +4241,9 @@ _LT_TAGDECL([], [hardcode_automatic], [0],
     [Set to "yes" if building a shared library automatically hardcodes DIR
     into the library and all subsequent libraries and executables linked
     against it])
+_LT_TAGDECL([], [inherit_rpath], [0],
+    [Set to yes if linker adds runtime paths of dependent libraries
+    to runtime path list])
 _LT_TAGDECL([], [link_all_deplibs], [0],
     [Whether libtool must link a program against all its dependency libraries])
 _LT_TAGDECL([], [fix_srcfile_path], [1],
@@ -4379,6 +4385,7 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
+_LT_AC_TAGVAR(inherit_rpath, $1)=no
 _LT_AC_TAGVAR(module_cmds, $1)=
 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
@@ -4859,6 +4866,7 @@ case $host_os in
     esac
     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+    _LT_AC_TAGVAR(inherit_rpath, $1)=yes
     ;;
   linux*)
     case $cc_basename in
@@ -5421,6 +5429,7 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
+_LT_AC_TAGVAR(inherit_rpath, $1)=no
 _LT_AC_TAGVAR(module_cmds, $1)=
 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown