This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/25725] New: libtool -rpath works only for GNU ld, not for Sun ld
- From: "alex at milivojevic dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2006 15:27:58 -0000
- Subject: [Bug target/25725] New: libtool -rpath works only for GNU ld, not for Sun ld
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Libtool is always invoked with -rpath /prefix/lib/sparcv9 option. When using
Sun ld (/usr/ccs/bin/ld), the option should be -R/prefix/lib/sparcv9. This
results in libraries and some executables not being able to find libraries they
depend on during runtime. It is possible that sparc-sun-* target is also
affected (not tested).
Examples of libraries and executables that are affected: f951, libgfortran.so,
libobjc.so, libgcj.so, libffi.so. Possibly more.
Not sure if libtool was supposed to pass -rpath as -R to actual link command
(it didn't), or if libtool should get -R instead of -rpath when Sun ld is used.
--
Summary: libtool -rpath works only for GNU ld, not for Sun ld
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: alex at milivojevic dot org
GCC build triplet: sparc64-sun-solaris2.9
GCC host triplet: sparc64-sun-solaris2.9
GCC target triplet: sparc64-sun-solaris2.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25725