From 0e512a4f6b553209c6afb01965a7d02e4a2f8921 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Tue, 14 Mar 2006 01:19:16 +0000 Subject: [PATCH] re PR target/26657 (With -fopenmp, gcc does not link with -lgomp) 2006-03-14 Andrew Pinski PR target/26657 * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp. From-SVN: r112041 --- gcc/ChangeLog | 5 +++++ gcc/config/darwin.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d2c7e51b74f..da4cb3d4aad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-03-14 Andrew Pinski + + PR target/26657 + * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp. + 2006-03-14 Joseph S. Myers * config/rs6000/rs6000.opt (mdlmzb): New option. diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index cd044b74385..a2c276dd4da 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -206,7 +206,8 @@ Boston, MA 02110-1301, USA. */ %{!Zdynamiclib:%{A} %{e*} %{m} %{N} %{n} %{r} %{u*} %{x} %{z}} \ %{@:-o %f%u.out}%{!@:%{o*}%{!o:-o a.out}} \ %{!Zdynamiclib:%{!A:%{!nostdlib:%{!nostartfiles:%S}}}} \ - %{L*} %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov} \ + %{L*} %{fopenmp:%:include(libgomp.spec)%(link_gomp)} \ + %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov} \ %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}}"