summaryrefslogtreecommitdiffstats
path: root/src/gcc-pthreads.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-09-19 02:46:12 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-09-19 02:46:12 (GMT)
commit89411daf8a7635cac522ce50e8afa2f443ca46a5 (patch)
tree52b85fc1df97ef6069a3fb3e0edec123340579b6 /src/gcc-pthreads.mk
parenta3790fd4452243ff3ec41b9da8cc6fab5778c931 (diff)
downloadmxe-89411daf8a7635cac522ce50e8afa2f443ca46a5.zip
mxe-89411daf8a7635cac522ce50e8afa2f443ca46a5.tar.gz
mxe-89411daf8a7635cac522ce50e8afa2f443ca46a5.tar.bz2
enable libgomp (OpenMP) in package gcc by interweaving the pthread build into the gcc build
Diffstat (limited to 'src/gcc-pthreads.mk')
-rw-r--r--src/gcc-pthreads.mk37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/gcc-pthreads.mk b/src/gcc-pthreads.mk
new file mode 100644
index 0000000..a6e0412
--- /dev/null
+++ b/src/gcc-pthreads.mk
@@ -0,0 +1,37 @@
+# Copyright (C) 2009 Volker Grabsch
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject
+# to the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+# Pthreads-w32 for GCC
+PKG := gcc-pthreads
+$(PKG)_VERSION := 2-8-0
+$(PKG)_CHECKSUM := da8371cb20e8e238f96a1d0651212f154d84a9ac
+$(PKG)_SUBDIR := pthreads-w32-$($(PKG)_VERSION)-release
+$(PKG)_FILE := pthreads-w32-$($(PKG)_VERSION)-release.tar.gz
+$(PKG)_WEBSITE := http://sourceware.org/pthreads-win32/
+$(PKG)_URL := ftp://sourceware.org/pub/pthreads-win32/$($(PKG)_FILE)
+$(PKG)_DEPS :=
+
+define $(PKG)_UPDATE
+ wget -q -O- 'ftp://sourceware.org/pub/pthreads-win32/Release_notes' | \
+ $(SED) -n 's,^RELEASE \([0-9][^[:space:]]*\).*,\1,p' | \
+ tr '.' '-' | \
+ head -1
+endef