From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id 5599D3858D1E; Sat, 12 Aug 2023 01:01:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5599D3858D1E Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb] Fix hppa64-hpux11 build to remove source paths from embedded path. X-Act-Checkin: binutils-gdb X-Git-Author: John David Anglin X-Git-Refname: refs/heads/master X-Git-Oldrev: f34b00a4362dd9bd6a05ca796d40e42656291d23 X-Git-Newrev: a55212c34e401e667808d0bf0a2f6b6b9f8db3ed Message-Id: <20230812010129.5599D3858D1E@sourceware.org> Date: Sat, 12 Aug 2023 01:01:29 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Aug 2023 01:01:29 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da55212c34e40= 1e667808d0bf0a2f6b6b9f8db3ed commit a55212c34e401e667808d0bf0a2f6b6b9f8db3ed Author: John David Anglin Date: Mon Aug 7 13:07:34 2023 +0200 Fix hppa64-hpux11 build to remove source paths from embedded path. =20 This change adds the +nodefaultrpath ld option to remove all library paths that were specified with the -L option from the embedded path. =20 * libtool.m4 (archive_cmds): Add +nodefaultrpath ld option on hppa64-*-hpux11*. Diff: --- libtool.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libtool.m4 b/libtool.m4 index 8c8399f600e..7d0593ae340 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -4927,7 +4927,7 @@ _LT_EOF if test "$GCC" =3D yes && test "$with_gnu_ld" =3D no; then case $host_cpu in hppa*64*) - _LT_TAGVAR(archive_cmds, $1)=3D'$CC -shared ${wl}+h ${wl}$soname -o $li= b $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_cmds, $1)=3D'$CC -shared ${wl}+h ${wl}$soname ${wl}+= nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)=3D'$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)=3D'$CC -b ${wl}+h ${wl}$soname -o $lib $li= bobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_cmds, $1)=3D'$CC -b ${wl}+h ${wl}$soname ${wl}+nodef= aultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)=3D'$CC -b ${wl}+h ${wl}$soname ${wl}+nodef= aultrpath -o $lib $libobjs $deplibs $compiler_flags' @@ -5916,7 +5916,7 @@ if test "$_lt_caught_CXX_error" !=3D yes; then aCC*) case $host_cpu in hppa*64*) - _LT_TAGVAR(archive_cmds, $1)=3D'$CC -b ${wl}+h ${wl}$soname -o $l= ib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_cmds, $1)=3D'$CC -b ${wl}+h ${wl}$soname ${wl}= +nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects = $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)=3D'$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" !=3D yes; then if test $with_gnu_ld =3D no; then case $host_cpu in hppa*64*) - _LT_TAGVAR(archive_cmds, $1)=3D'$CC -shared -nostdlib -fPIC $= {wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_obje= cts $compiler_flags' + _LT_TAGVAR(archive_cmds, $1)=3D'$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)=3D'$CC -shared -nostdlib -fPIC $= {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $= deplibs $postdep_objects $compiler_flags'