libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] new -no-rpath option to disable hardcoding of library paths


From: Scott James Remnant
Subject: [PATCH] new -no-rpath option to disable hardcoding of library paths
Date: Mon, 03 Nov 2003 16:12:17 +0000

Here's an alternative to the changing sys_lib_dlsearch_path_spec
variable for Linux.

This one simply adds a -no-rpath option that disables hardcoding of all
library paths, if the user wishes that.

Scott
-- 
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?

diff -ruNp libtool-CVS~/ChangeLog libtool-CVS/ChangeLog
--- libtool-CVS~/ChangeLog      2003-10-30 14:40:11.000000000 +0000
+++ libtool-CVS/ChangeLog       2003-11-03 16:01:36.000000000 +0000
@@ -0,0 +1,5 @@
+2003-11-03  Scott James Remnant  <address@hidden>
+
+       * m4/libtool.m4: Add new -no-rpath option that disables hardcoding
+       of library paths into libraries or executables.
+
diff -ruNp libtool-CVS~/doc/libtool.texi libtool-CVS/doc/libtool.texi
--- libtool-CVS~/doc/libtool.texi       2003-10-21 16:03:56.000000000 +0100
+++ libtool-CVS/doc/libtool.texi        2003-11-03 16:08:14.000000000 +0000
@@ -1272,6 +1272,11 @@ Link an executable @var{output-file} tha
 therefore doesn't need a wrapper script.  Useful if the program is only
 used in the build tree, e.g., for testing or generating other files.
 
address@hidden -no-rpath
+Disable the hardcoding of library paths into resulting execultable or
+library.  Useful for creating libraries you know you need to be able
+to move freely.
+
 @item -no-undefined
 Declare that @var{output-file} does not depend on any other libraries.
 Some platforms cannot create shared libraries that depend on other
diff -ruNp libtool-CVS~/ltmain.in libtool-CVS/ltmain.in
--- libtool-CVS~/ltmain.in      2003-10-20 14:36:10.000000000 +0100
+++ libtool-CVS/ltmain.in       2003-11-03 16:06:48.000000000 +0000
@@ -1372,6 +1372,12 @@ EOF
        continue
        ;;
 
+      -no-rpath)
+       hardcode_into_libs=no
+       hardcode_libdir_flag_spec=""
+       continue
+       ;;
+
       -no-undefined)
        allow_undefined=no
        continue
@@ -6332,6 +6338,7 @@ The following components of LINK-COMMAND
   -module           build a library that can dlopened
   -no-fast-install  disable the fast-install mode
   -no-install       link a not-installable executable
+  -no-rpath         disable hardcoding of library paths into targets
   -no-undefined     declare that a library does not refer to external symbols
   -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
   -objectlist FILE  Use a list of object files found in FILE to specify objects
diff -ruNp libtool-CVS~/NEWS libtool-CVS/NEWS
--- libtool-CVS~/NEWS   2003-10-21 16:03:54.000000000 +0100
+++ libtool-CVS/NEWS    2003-11-03 16:10:42.000000000 +0000
@@ -17,6 +17,7 @@ New in 1.5b: 2003-??-??; CVS version 1.5
   `-shared' is a fatal error.
 * libtoolize installs libtool.m4 (and ltdl.m4 if used) to AC_CONFIG_MACRO_DIR.
 * Mode inferrence removed, shorthand for choosing modes added.
+* New link more option '-no-rpath' to disable hardcoding of library paths.
 * Specifying -allow-undefined is now an error.
 * Initial support for amigaos-ppc.
 * Speed up max_cmd_len check.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]