Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # |
| 2 | # qmake configuration for common gcc |
| 3 | # |
| 4 | |
| 5 | QMAKE_COMPILER = gcc |
| 6 | |
| 7 | QMAKE_CC = $(OE_QMAKE_CC) |
| 8 | QMAKE_CFLAGS += $(OE_QMAKE_CFLAGS) |
| 9 | QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $(OE_QMAKE_CFLAGS) |
| 10 | QMAKE_CFLAGS_PRECOMPILE += -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} |
| 11 | QMAKE_CFLAGS_USE_PRECOMPILE += -include ${QMAKE_PCH_OUTPUT_BASE} |
| 12 | |
| 13 | QMAKE_CXX = $(OE_QMAKE_CXX) |
| 14 | QMAKE_CXXFLAGS += $(OE_QMAKE_CXXFLAGS) |
| 15 | QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO |
| 16 | QMAKE_CXXFLAGS_PRECOMPILE += -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} |
| 17 | QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE |
| 18 | |
| 19 | QMAKE_LINK = $(OE_QMAKE_LINK) |
| 20 | QMAKE_LINK_SHLIB = $(OE_QMAKE_LINK) |
| 21 | QMAKE_LINK_C = $(OE_QMAKE_LINK) |
| 22 | QMAKE_LINK_C_SHLIB = $(OE_QMAKE_LINK) |
| 23 | QMAKE_LFLAGS += $(OE_QMAKE_LDFLAGS) |
| 24 | QMAKE_LFLAGS_NOUNDEF += -Wl,--no-undefined |
| 25 | QMAKE_LFLAGS_RPATH = -Wl,-rpath-link, |
| 26 | |
| 27 | QMAKE_PCH_OUTPUT_EXT = .gch |
| 28 | |
| 29 | # -Bsymbolic-functions (ld) support |
| 30 | QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions |
| 31 | QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list, |
| 32 | |
| 33 | # do not depend on gdb |
| 34 | CONFIG -= gdb_dwarf_index |
| 35 | |
| 36 | # some linking helper... |
| 37 | CONFIG += rpath_libdirs |
| 38 | |
| 39 | # for the SDK |
| 40 | isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $(OE_QMAKE_QT_CONFIG) |