From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25734 invoked by alias); 9 Jan 2006 15:28:00 -0000 Received: (qmail 25721 invoked by uid 48); 9 Jan 2006 15:27:58 -0000 Date: Mon, 09 Jan 2006 15:28:00 -0000 Subject: [Bug target/25725] New: libtool -rpath works only for GNU ld, not for Sun ld X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "alex at milivojevic dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-01/txt/msg00819.txt.bz2 List-Id: 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