aboutsummaryrefslogtreecommitdiff
path: root/libtool.m4
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2023-08-07 13:07:34 +0200
committerAlan Modra <amodra@gmail.com>2023-08-12 10:25:06 +0930
commita55212c34e401e667808d0bf0a2f6b6b9f8db3ed (patch)
treef252ce249a00e4454b01ac5183e933b059f89938 /libtool.m4
parentf34b00a4362dd9bd6a05ca796d40e42656291d23 (diff)
downloadfsf-binutils-gdb-a55212c34e401e667808d0bf0a2f6b6b9f8db3ed.zip
fsf-binutils-gdb-a55212c34e401e667808d0bf0a2f6b6b9f8db3ed.tar.gz
fsf-binutils-gdb-a55212c34e401e667808d0bf0a2f6b6b9f8db3ed.tar.bz2
Fix hppa64-hpux11 build to remove source paths from embedded path.
This change adds the +nodefaultrpath ld option to remove all library paths that were specified with the -L option from the embedded path. * libtool.m4 (archive_cmds): Add +nodefaultrpath ld option on hppa64-*-hpux11*.
Diffstat (limited to 'libtool.m4')
-rw-r--r--libtool.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/libtool.m4 b/libtool.m4
index 8c8399f..7d0593a 100644
--- a/libtool.m4
+++ b/libtool.m4
@@ -4927,7 +4927,7 @@ _LT_EOF
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
case $host_cpu in
hppa*64*)
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
;;
ia64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
@@ -4939,7 +4939,7 @@ _LT_EOF
else
case $host_cpu in
hppa*64*)
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
;;
ia64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
@@ -5916,7 +5916,7 @@ if test "$_lt_caught_CXX_error" != yes; then
aCC*)
case $host_cpu in
hppa*64*)
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
;;
ia64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
@@ -5940,7 +5940,7 @@ if test "$_lt_caught_CXX_error" != yes; then
if test $with_gnu_ld = no; then
case $host_cpu in
hppa*64*)
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
;;
ia64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'