summaryrefslogtreecommitdiff
path: root/packages/libtool/libtool-1.5.10/rpath-control.patch
diff options
context:
space:
mode:
authorMichael Krelin <hacker@klever.net>2007-07-05 21:21:29 +0000
committerMichael Krelin <hacker@klever.net>2007-07-05 21:21:29 +0000
commit61eb548006d6689118062794da3d2b35d8b4638f (patch)
tree193dbe86968bb6f0ac4a0d5c8b29fc3ffeff469e /packages/libtool/libtool-1.5.10/rpath-control.patch
parent596bc6198dbeaaaa74db3c894b67121d5f50dfb6 (diff)
libtool-{cross,native} 1.5.10: rework rpath stripping to make it controllable
Diffstat (limited to 'packages/libtool/libtool-1.5.10/rpath-control.patch')
-rw-r--r--packages/libtool/libtool-1.5.10/rpath-control.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/libtool/libtool-1.5.10/rpath-control.patch b/packages/libtool/libtool-1.5.10/rpath-control.patch
new file mode 100644
index 0000000000..310fe3f8ae
--- /dev/null
+++ b/packages/libtool/libtool-1.5.10/rpath-control.patch
@@ -0,0 +1,21 @@
+diff --git a/ltmain.in b/ltmain.in
+--- a/ltmain.in
++++ b/ltmain.in
+@@ -3688,6 +3705,7 @@ EOF
+ rpath="$finalize_rpath"
+ test "$mode" != relink && rpath="$compile_rpath$rpath"
+ for libdir in $rpath; do
++ if test "$OE_LT_RPATH_ALLOW" = "any" -o "${OE_LT_RPATH_ALLOW/:${libdir}:/}" != "$OE_LT_RPATH_ALLOW" ; then
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+@@ -3712,6 +3730,9 @@ EOF
+ *) perm_rpath="$perm_rpath $libdir" ;;
+ esac
+ fi
++ else
++ echo "OE: Not hardcoding '$libdir' into rpath"
++ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&