This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix PR 26588: gomp on cygwin
- From: "Billinghurst, David \(CALCRTS\)" <david dot billinghurst at comalco dot riotinto dot com dot au>
- To: <gcc-patches at gcc dot gnu dot org>
- Cc: <fortran at gcc dot gnu dot org>
- Date: Wed, 8 Mar 2006 10:52:10 +1100
- Subject: [committed] Fix PR 26588: gomp on cygwin
I have committed this fix for PR 26588 as obvious.
Tested on i686-pc-cygwin.
2006-03-08 David Billinghurst <David.Billinghurst@riotinto.com>
PR target/26588
* config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
--- cygwin.h (revision 111788)
+++ cygwin.h (working copy)
@@ -232,3 +232,9 @@
/* 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 cygwin1.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 ""
NOTICE
This e-mail and any attachments are private and confidential and may contain privileged information. If you are not an authorised recipient, the copying or distribution of this e-mail and any attachments is prohibited and you must not read, print or act in reliance on this e-mail or attachments.
This notice should not be removed.