2 # qmake configuration for common gcc
3 # http://www.freehackers.org/thomas/2010/01/10/playing-with-clang-and-qt/
7 #QMAKE_CC = /home/orzel/svn/llvm/Release/bin/clang
8 QMAKE_CFLAGS += -pipe -std=c++17
9 QMAKE_CFLAGS_DEPS += -M
10 QMAKE_CFLAGS_WARN_ON += -Wall -W
11 QMAKE_CFLAGS_WARN_OFF += -w
12 QMAKE_CFLAGS_RELEASE += -O2
13 QMAKE_CFLAGS_DEBUG += -g
14 QMAKE_CFLAGS_SHLIB += -fPIC
15 QMAKE_CFLAGS_STATIC_LIB += -fPIC
16 QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses
17 QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
18 QMAKE_CFLAGS_PRECOMPILE += -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
19 QMAKE_CFLAGS_USE_PRECOMPILE += -include ${QMAKE_PCH_OUTPUT_BASE}
22 #QMAKE_CXX = /home/orzel/svn/llvm/Release/bin/clang++
23 QMAKE_CXXFLAGS += $$QMAKE_CFLAGS
24 QMAKE_CXXFLAGS_DEPS += $$QMAKE_CFLAGS_DEPS
25 QMAKE_CXXFLAGS_WARN_ON += $$QMAKE_CFLAGS_WARN_ON
26 QMAKE_CXXFLAGS_WARN_OFF += $$QMAKE_CFLAGS_WARN_OFF
27 QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_RELEASE
28 QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_DEBUG
29 QMAKE_CXXFLAGS_SHLIB += $$QMAKE_CFLAGS_SHLIB
30 QMAKE_CXXFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_STATIC_LIB
31 QMAKE_CXXFLAGS_YACC += $$QMAKE_CFLAGS_YACC
32 QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden
33 QMAKE_CXXFLAGS_PRECOMPILE += -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
34 QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
37 QMAKE_LINK_SHLIB = clang++
38 #QMAKE_LINK = /home/orzel/svn/llvm/Release/bin/clang++
39 #QMAKE_LINK_SHLIB = /home/orzel/svn/llvm/Release/bin/clang++
41 QMAKE_LFLAGS += -std=c++17
42 QMAKE_LFLAGS_RELEASE +=
45 QMAKE_LFLAGS_SHLIB += -shared
46 QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB
47 QMAKE_LFLAGS_SONAME += -Wl,-soname,
48 QMAKE_LFLAGS_THREAD +=
49 QMAKE_LFLAGS_RPATH = -Wl,-rpath,
51 QMAKE_PCH_OUTPUT_EXT = .gch
53 # -Bsymbolic-functions (ld) support
54 QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions
55 QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list,