summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-01 14:59:25 +0000
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-01 14:59:25 +0000
commit098969f4675c42319fe11d733ad030c15dc64b97 (patch)
tree6bd42672708c76a1bd46dbae0833e051277858e2
parentb550f03609969448d2b862eb3a0a1170ba75209d (diff)
downloadgcc-098969f4675c42319fe11d733ad030c15dc64b97.tar.gz
Missing new files from previous patch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171834 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/config/i386/mingw-pthread.h21
-rw-r--r--gcc/config/i386/t-mingw-pthread2
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/config/i386/mingw-pthread.h b/gcc/config/i386/mingw-pthread.h
new file mode 100644
index 00000000000..7868b943788
--- /dev/null
+++ b/gcc/config/i386/mingw-pthread.h
@@ -0,0 +1,21 @@
+/* Defines that pthread library shall be enabled by default
+ for target.
+ Copyright (C) 2011 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3, or (at your option)
+any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
+
+#define TARGET_USE_PTHREAD_BY_DEFAULT 1
diff --git a/gcc/config/i386/t-mingw-pthread b/gcc/config/i386/t-mingw-pthread
new file mode 100644
index 00000000000..622ef82be6e
--- /dev/null
+++ b/gcc/config/i386/t-mingw-pthread
@@ -0,0 +1,2 @@
+SHLIB_PTHREAD_CFLAG = -pthread
+SHLIB_PTHREAD_LDFLAG = -Wl,-lpthread