summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-10-27 03:14:43 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-10-31 09:18:21 (GMT)
commit30b7b7164f9763f206dedb0929cbe3a510ad5ab9 (patch)
tree63c1fcba7485a1283d49a13c62701e72e8a96bcc /Makefile
parent05380b49b7337df2eb11f834a8a9b01b0ab1cbe7 (diff)
downloadmxe-30b7b7164f9763f206dedb0929cbe3a510ad5ab9.zip
mxe-30b7b7164f9763f206dedb0929cbe3a510ad5ab9.tar.gz
mxe-30b7b7164f9763f206dedb0929cbe3a510ad5ab9.tar.bz2
enbale MXE_GCC_THREADS and allow target spec <triplet>.<link>.<threads>
* enables optional c++11 <thread>, <mutex>, and <future> in libgcc * avoid double build advice: http://sigrok.org/gitweb/?p=sigrok-util.git;a=blob;f=cross-compile/mingw/README;h=248af546f939a81855dda33142d834eecf2979c2;hb=HEAD#l44 * not heavily tested but should be released for feedback
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 12ceff7..10757ee 100644
--- a/Makefile
+++ b/Makefile
@@ -76,6 +76,9 @@ MXE_CONFIGURE_OPTS = \
--enable-static --disable-shared , \
--disable-static --enable-shared )
+MXE_GCC_THREADS = \
+ $(if $(findstring posix,$(TARGET)),posix,win32)
+
# Append these to the "make" and "make install" steps of autotools packages
# in order to neither build nor install unwanted binaries, manpages,
# infopages and API documentation (reduces build time and disk space usage).
@@ -360,7 +363,7 @@ define TARGET_RULE
$(if $(findstring i686-pc-mingw32,$(1)),
$(error Deprecated target specified: "$(1)". Please use \
i686-w64-mingw32.[$(subst $(space),|,$(MXE_LIB_TYPES))] instead))
- $(if $(filter $(1),$(MXE_TARGET_LIST) $(BUILD) $(MXE_TRIPLETS)),,
+ $(if $(filter $(addsuffix %,$(MXE_TARGET_LIST) $(BUILD) $(MXE_TRIPLETS)),$(1)),,
$(error Invalid target specified: "$(1)"))
$(if $(findstring 1,$(words $(subst ., ,$(filter-out $(BUILD),$(1))))),
@echo