[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
New inherit_path variable to disable enable_fast_install
From: |
Albert Chin |
Subject: |
New inherit_path variable to disable enable_fast_install |
Date: |
Tue, 22 Jul 2003 01:41:41 -0500 |
User-agent: |
Mutt/1.4i |
Patch to address issue in:
http://mail.gnu.org/archive/html/libtool/2003-07/msg00086.html
--
albert chin (address@hidden)
-- snip snip
2003-07-21 Albert Chin-A-Young <address@hidden>
* libtool.m4: Introduce inherit_rpath variable for
systems where the RPATH paths are inherited into
libraries and executables. Because the RPATH is
inherited into executables, binaries must be relinked
at install time, thus disabling enable_fast_install.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.314.2.8
diff -u -3 -p -r1.314.2.8 libtool.m4
--- libtool.m4 26 Jun 2003 06:55:26 -0000 1.314.2.8
+++ libtool.m4 21 Jul 2003 23:15:12 -0000
@@ -1035,7 +1015,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 ||
@@ -2613,6 +2575,7 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_
_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
@@ -3089,6 +3052,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
@@ -3631,6 +3595,7 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_
_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
@@ -3862,6 +3827,7 @@ if test -f "$ltmain"; then
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
_LT_AC_TAGVAR(hardcode_automatic, $1) \
+ _LT_AC_TAGVAR(inherit_rpath, $1) \
_LT_AC_TAGVAR(module_cmds, $1) \
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
@@ -4197,8 +4163,8 @@ hardcode_libdir_flag_spec_ld=$lt_[]_LT_A
# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR
into the
-# resulting binary.
+# Set to yes if using DIR/libNAME${shared_ext} during linking
+# hardcodes DIR into the resulting binary.
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
@@ -4209,10 +4175,15 @@ hardcode_minus_L=$_LT_AC_TAGVAR(hardcode
# the resulting binary.
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
-# Set to yes if building a shared library automatically hardcodes DIR into the
library
-# and all subsequent libraries and executables linked against it.
+# Set to yes if building a shared library automatically hardcodes
+# DIR into the library and all subsequent libraries and executables
+# linked against it.
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
+# Set to yes if linker adds runtime paths of dependent libraries
+# to runtime path list.
+inherit_rpath=$_LT_AC_TAGVAR(inherit_rpath, $1)
+
# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"
@@ -4994,6 +4965,7 @@ ifelse([$1],[CXX],[
_LT_AC_TAGVAR(hardcode_direct, $1)=no
_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(hardcode_automatic, $1)=no
_LT_AC_TAGVAR(module_cmds, $1)=
@@ -5480,6 +5452,7 @@ 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
;;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- New inherit_path variable to disable enable_fast_install,
Albert Chin <=