[PATCH] Fix PR darwin/26657, -fopenmp not linking with -lgomp

Andrew Pinski pinskia@physics.uc.edu
Mon Mar 13 22:01:00 GMT 2006


The problem here is that the Darwin target has its own LINK_COMMAND_SPEC
which was not updated for the OpenMP changes so trying to link with 
-fopenmp,
failed as you would also need to include -lgomp which should not be 
required
as documented.  This patch updates Darwin's LINK_COMMAND_SPEC to include
that change.

OK? Bootstrapped and tested on powerpc-darwin with no regressions
and checked to make sure that a simple openmp program linked to the 
OpenMP
library.

Thanks,
Andrew Pinski

ChangeLog:

	* config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fixopenmp.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060313/33c31ecd/attachment.txt>


More information about the Gcc-patches mailing list