aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin.h
diff options
context:
space:
mode:
authorIain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>2009-01-20 00:59:24 +0000
committerJanis Johnson <janis@gcc.gnu.org>2009-01-20 00:59:24 +0000
commit72c665969348d8e57ca8b4f39f7fffbc5f0a0d46 (patch)
tree0fe05fe529d09ee5c6892cc3701dbd37a3326bca /gcc/config/darwin.h
parent6600206c4efd31e1a6034cab809c51d72a694163 (diff)
downloadgcc-72c665969348d8e57ca8b4f39f7fffbc5f0a0d46.zip
gcc-72c665969348d8e57ca8b4f39f7fffbc5f0a0d46.tar.gz
gcc-72c665969348d8e57ca8b4f39f7fffbc5f0a0d46.tar.bz2
darwin.h: Add static-libgfortran to LINK_SPEC.
2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk> gcc/ * config/darwin.h: Add static-libgfortran to LINK_SPEC. gcc/testsuite/ * lib/gfortran.exp: Add -B options for targets that use libgfortran.a%s in their specs. libgomp/ * testsuite/lib/libgomp.exp: Add -B option for targets that use libgfortran.a%s in their specs. From-SVN: r143507
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r--gcc/config/darwin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 03955c6..53dab64 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -258,6 +258,7 @@ extern GTY(()) int darwin_ms_struct;
#define LINK_SPEC \
"%{static}%{!static:-dynamic} \
%{fgnu-runtime:%:replace-outfile(-lobjc -lobjc-gnu)}\
+ %{static|static-libgfortran:%:replace-outfile(-lgfortran libgfortran.a%s)}\
%{!Zdynamiclib: \
%{Zforce_cpusubtype_ALL:-arch %(darwin_arch) -force_cpusubtype_ALL} \
%{!Zforce_cpusubtype_ALL:-arch %(darwin_subarch)} \