This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26588] gfortran -fopenmp passes unrecognised -pthread
- From: "billingd at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Mar 2006 02:22:58 -0000
- Subject: [Bug target/26588] gfortran -fopenmp passes unrecognised -pthread
- References: <bug-26588-270@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from billingd at gcc dot gnu dot org 2006-03-07 02:22 -------
I am testing this.
2006-03-07 David Billinghurst (David.Billinghurst@riotinto.com)
PR target/26588
* config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
--- cygwin.h~ 2006-02-01 14:17:44.000000000 +1100
+++ cygwin.h 2006-03-07 13:08:52.420324700 +1100
@@ -232,3 +232,10 @@
/* Binutils does not handle weak symbols from dlls correctly. For now,
do not use them unnecessarily in gthr-posix.h. */
#define GTHREAD_USE_WEAK 0
+
+/* Every program on cygwin links against cygwin.dll which contains
+ the pthread routines. There is no need to explicitly link them
+ and the -pthread flag is not recognised. */
+#undef GOMP_SELF_SPECS
+#define GOMP_SELF_SPECS ""
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26588