This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA: Remove -rpath-link from MIPS, SH, mn10300 Linux targets
- From: Daniel Jacobowitz <drow at false dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 25 Jan 2005 15:54:39 -0500
- Subject: RFA: Remove -rpath-link from MIPS, SH, mn10300 Linux targets
These targets all use -rpath-link %R/lib:%R/usr/lib. This was originally
added before ld supported --with-sysroot; but now that it does, I would like
to drop it. It isn't necessary any more, and it gave me a nasty surprise to
find out that changing the linker script was not enough to make another
directory be searched before /lib for DT_NEEDED entries.
OK?
--
Daniel Jacobowitz
2005-01-25 Daniel Jacobowitz <dan@codesourcery.com>
* config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
* config/mips/linux64.h (LIB_SPEC): Likewise.
* config/mn10300/linux.h (LIB_SPEC): Likewise.
* config/sh/linux.h (LIB_SPEC): Likewise.
Index: config/mips/linux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/linux.h,v
retrieving revision 1.82
diff -u -p -r1.82 linux.h
--- config/mips/linux.h 23 Dec 2004 19:39:30 -0000 1.82
+++ config/mips/linux.h 25 Jan 2005 20:51:08 -0000
@@ -1,5 +1,5 @@
/* Definitions for MIPS running Linux-based GNU systems with ELF format.
- Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of GCC.
@@ -175,7 +175,6 @@ Boston, MA 02111-1307, USA. */
#undef LIB_SPEC
#define LIB_SPEC "\
%{shared: -lc} \
-%{!static:-rpath-link %R/lib:%R/usr/lib} \
%{!shared: %{pthread:-lpthread} \
%{profile:-lc_p} %{!profile: -lc}}"
Index: config/mips/linux64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/linux64.h,v
retrieving revision 1.11
diff -u -p -r1.11 linux64.h
--- config/mips/linux64.h 18 Jan 2005 12:01:36 -0000 1.11
+++ config/mips/linux64.h 25 Jan 2005 20:51:08 -0000
@@ -33,10 +33,6 @@ Boston, MA 02111-1307, USA. */
#undef LIB_SPEC
#define LIB_SPEC "\
%{shared: -lc} \
-%{!static: \
- %{mabi=n32:-rpath-link %R/lib32:%R/usr/lib32} \
- %{mabi=64:-rpath-link %R/lib64:%R/usr/lib64} \
- %{mabi=32:-rpath-link %R/lib:%R/usr/lib}} \
%{!shared: %{pthread:-lpthread} \
%{profile:-lc_p} %{!profile: -lc}}"
Index: config/mn10300/linux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mn10300/linux.h,v
retrieving revision 1.3
diff -u -p -r1.3 linux.h
--- config/mn10300/linux.h 29 Nov 2003 03:08:11 -0000 1.3
+++ config/mn10300/linux.h 25 Jan 2005 20:51:08 -0000
@@ -1,6 +1,6 @@
/* Definitions of taret machine for GNU compiler.
Matsushita AM33/2.0
- Copyright 2001, 2002 Free Software Foundation, Inc.
+ Copyright 2001, 2002, 2005 Free Software Foundation, Inc.
Contributed by Alexandre Oliva <aoliva@redhat.com>
This file is part of GCC.
@@ -43,7 +43,6 @@
#undef LIB_SPEC
#define LIB_SPEC \
"%{shared: -lc} \
- %{!static:-rpath-link %R/lib:%R/usr/lib} \
%{!shared: %{pthread:-lpthread} \
%{profile:-lc_p} %{!profile: -lc}}"
Index: config/sh/linux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/linux.h,v
retrieving revision 1.26
diff -u -p -r1.26 linux.h
--- config/sh/linux.h 18 Jan 2005 23:50:28 -0000 1.26
+++ config/sh/linux.h 25 Jan 2005 20:51:08 -0000
@@ -78,7 +78,6 @@ do { \
#define LIB_SPEC \
"%{pthread:-lpthread} \
%{shared: -lc} \
- %{!static:-rpath-link %R/lib:%R/usr/lib} \
%{!shared: \
%{mieee-fp:-lieee} \
%{profile:-lc_p} %{!profile: -lc}}"