linux.h (CRIS_LINK_SUBTARGET_SPEC): Translate -B-options to -rpath-link.
authorHans-Peter Nilsson <hp@axis.com>
Sun, 22 Mar 2009 15:15:04 +0000 (15:15 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Sun, 22 Mar 2009 15:15:04 +0000 (15:15 +0000)
* 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

gcc/ChangeLog
gcc/config/cris/linux.h

index a2842e90a0e63ac017172fed8d56c19ec655f3f5..4980b9564840b38e220e1f5b7dac96b1e9159517 100644 (file)
@@ -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):
index 247e827d6773ad487d104b90e898867793b44490..38f0a7ef8c9f139a84c8fcdcff0fb103d956a1e4 100644 (file)
@@ -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:\