summaryrefslogtreecommitdiff
path: root/gcc/config/darwin.h
diff options
context:
space:
mode:
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-20 00:59:24 +0000
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-20 00:59:24 +0000
commit94cd11b9d3db714547e8c303df6ca08eb4b2d7eb (patch)
tree0fe05fe529d09ee5c6892cc3701dbd37a3326bca /gcc/config/darwin.h
parenta601fe5a3c0a3964178a9a34738c612cda125c9f (diff)
downloadgcc-94cd11b9d3db714547e8c303df6ca08eb4b2d7eb.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143507 138bc75d-0d04-0410-961f-82ee72b054a4
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 03955c64d0a..53dab640594 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)} \