aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2009-03-22 15:15:04 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2009-03-22 15:15:04 +0000
commitf82162f8a16b00eb4952946e41c67786b137ead9 (patch)
tree6b9912b6b733508b559d2f7d18c20ddcb2c069de /gcc
parent78425caa1d62d6efbe50d2d11c269b32ca5eff73 (diff)
downloadgcc-f82162f8a16b00eb4952946e41c67786b137ead9.zip
gcc-f82162f8a16b00eb4952946e41c67786b137ead9.tar.gz
gcc-f82162f8a16b00eb4952946e41c67786b137ead9.tar.bz2
linux.h (CRIS_LINK_SUBTARGET_SPEC): Translate -B-options to -rpath-link.
* config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Translate -B-options to -rpath-link. Correct existing rpath-link and conditionalize on !nostdlib. From-SVN: r144998
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/cris/linux.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a2842e9..4980b95 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2009-03-22 Hans-Peter Nilsson <hp@axis.com>
+
+ * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
+ Translate -B-options to -rpath-link. Correct existing
+ rpath-link and conditionalize on !nostdlib.
+
2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* doc/extend.texi (Function Attributes, Variable Attributes):
diff --git a/gcc/config/cris/linux.h b/gcc/config/cris/linux.h
index 247e827..38f0a7e 100644
--- a/gcc/config/cris/linux.h
+++ b/gcc/config/cris/linux.h
@@ -110,7 +110,8 @@ along with GCC; see the file COPYING3. If not see
#undef CRIS_LINK_SUBTARGET_SPEC
#define CRIS_LINK_SUBTARGET_SPEC \
"-mcrislinux\
- -rpath-link include/asm/../..%s\
+ %{B*:-rpath-link %*}\
+ %{!nostdlib:-rpath-link ../sys-include/asm/../../lib%s}\
%{shared} %{static}\
%{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
%{!shared:%{!static:\