diff options
author | davek <davek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-31 01:35:24 +0000 |
---|---|---|
committer | davek <davek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-31 01:35:24 +0000 |
commit | 6577f88ea06d0e9e3f1d924c87f7d5b7bbc1d248 (patch) | |
tree | 34ec363d706bd80ef102af8e95cab4e56ba40396 /gcc/config/darwin.h | |
parent | 3bf40ba2eb69e4afb2a34f2264fc1167a4e0cd5d (diff) | |
download | ppe42-gcc-6577f88ea06d0e9e3f1d924c87f7d5b7bbc1d248.tar.gz ppe42-gcc-6577f88ea06d0e9e3f1d924c87f7d5b7bbc1d248.zip |
2009-12-31 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
PR target/41605
* config/darwin.h (LINK_COMMAND_SPEC): Resolve fopenmp specifically
for target.
(LINK_SPEC): Replace dynamic libraries by static equivalents where
necessary.
* config/darwin9.h (LINK_COMMAND_SPEC): Resolve fopenmp specifically
for target.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155534 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r-- | gcc/config/darwin.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 2bcc71a6885..6595e53bda2 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -272,9 +272,10 @@ extern GTY(()) int darwin_ms_struct; %{A} %{e*} %{m} %{r} %{x} \ %{o*}%{!o:-o a.out} \ %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \ - %{L*} %{fopenmp:%:include(libgomp.spec)%(link_gomp)} \ - %(link_libgcc) %o %{fprofile-arcs|fprofile-generate*|coverage:-lgcov} \ - %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \ + %{L*} %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov} \ + %{fopenmp|ftree-parallelize-loops=*: \ + %{static|static-libgcc|static-libstdc++|static-libgfortran: libgomp.a%s; : -lgomp } } \ + %{!nostdlib:%{!nodefaultlibs: %(link_ssp) %G %L }} \ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n\ %{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ %{.c|.cc|.C|.cpp|.cp|.c++|.cxx|.CPP|.m|.mm: \ @@ -293,8 +294,12 @@ extern GTY(()) int darwin_ms_struct; so put a * after their names so all of them get passed. */ #define LINK_SPEC \ "%{static}%{!static:-dynamic} \ - %{fgnu-runtime:%:replace-outfile(-lobjc -lobjc-gnu)}\ - %{static|static-libgfortran:%:replace-outfile(-lgfortran libgfortran.a%s)}\ + %{fgnu-runtime: %{static|static-libgcc: \ + %:replace-outfile(-lobjc libobjc-gnu.a%s); \ + :%:replace-outfile(-lobjc -lobjc-gnu ) } }\ + %{static|static-libgcc|static-libgfortran:%:replace-outfile(-lgfortran libgfortran.a%s)}\ + %{static|static-libgcc|static-libstdc++|static-libgfortran:%:replace-outfile(-lgomp libgomp.a%s)}\ + %{static|static-libgcc|static-libstdc++:%:replace-outfile(-lstdc++ libstdc++.a%s)}\ %{!Zdynamiclib: \ %{Zforce_cpusubtype_ALL:-arch %(darwin_arch) -force_cpusubtype_ALL} \ %{!Zforce_cpusubtype_ALL:-arch %(darwin_subarch)} \ |