From 98158096a4f72ca6e5c4086bd6c88f38d3aef651 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 27 Aug 2020 18:29:39 +0300 Subject: [PATCH] qmake: Do not pass -mthreads to Clang It is not supported. Warning: argument unused during compilation '-mthreads'. Change-Id: I6de147c15dbf3c7f416b233e739ce2de183701af Reviewed-by: Joerg Bornemann --- mkspecs/common/g++-win32.conf | 3 +-- mkspecs/win32-g++/qmake.conf | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mkspecs/common/g++-win32.conf b/mkspecs/common/g++-win32.conf index d4067f60b6..a1e08ed63b 100644 --- a/mkspecs/common/g++-win32.conf +++ b/mkspecs/common/g++-win32.conf @@ -31,7 +31,7 @@ QMAKE_YACCFLAGS = -d QMAKE_CFLAGS_SSE2 += -mstackrealign -QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions -mthreads +QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions QMAKE_INCDIR = @@ -40,7 +40,6 @@ QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< -QMAKE_LFLAGS_EXCEPTIONS_ON = -mthreads QMAKE_LFLAGS_RELEASE = -Wl,-s QMAKE_LFLAGS_CONSOLE = -Wl,-subsystem,console QMAKE_LFLAGS_WINDOWS = -Wl,-subsystem,windows diff --git a/mkspecs/win32-g++/qmake.conf b/mkspecs/win32-g++/qmake.conf index 5de482f23b..1987fa77d4 100644 --- a/mkspecs/win32-g++/qmake.conf +++ b/mkspecs/win32-g++/qmake.conf @@ -19,6 +19,7 @@ QMAKE_CFLAGS_WARN_ON += -Wextra QMAKE_CXX = $${CROSS_COMPILE}g++ QMAKE_CXXFLAGS += -fno-keep-inline-dllexport QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON +QMAKE_CXXFLAGS_EXCEPTIONS_ON += -mthreads QMAKE_LINK = $${CROSS_COMPILE}g++ QMAKE_LINK_C = $${CROSS_COMPILE}gcc @@ -26,5 +27,6 @@ QMAKE_LINK_C = $${CROSS_COMPILE}gcc QMAKE_CFLAGS_LTCG = -flto QMAKE_CXXFLAGS_LTCG = $$QMAKE_CFLAGS_LTCG QMAKE_LFLAGS_LTCG = $$QMAKE_CFLAGS_LTCG +QMAKE_LFLAGS_EXCEPTIONS_ON += -mthreads load(qt_config)