mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
Don't hardcode g++ in the toolchain settings
Although it's already quite ugly that we overwrite QMAKE_CC like this, hardcoding 'g++' can break the build where prefixed versions of the toolchain are expected and where QMAKE_CXX is already properly defined. So we just use QMAKE_CXX variable here. This fixes build failures on some distributions, e.g. https://galileo.mailstation.de/jenkins/job/lipidity/36/console
This commit is contained in:
parent
59aef8ab7b
commit
ed867c52bd
3 changed files with 9 additions and 9 deletions
|
@ -122,7 +122,7 @@ linux-* {
|
|||
CONFIG += link_pkgconfig
|
||||
|
||||
QMAKE_CXXFLAGS *= -Wall -D_FILE_OFFSET_BITS=64
|
||||
QMAKE_CC = g++
|
||||
QMAKE_CC = $${QMAKE_CXX}
|
||||
|
||||
contains(CONFIG, NO_SQLCIPHER) {
|
||||
DEFINES *= NO_SQLCIPHER
|
||||
|
@ -225,7 +225,7 @@ win32-x-g++ {
|
|||
################################# Windows ##########################################
|
||||
|
||||
win32 {
|
||||
QMAKE_CC = g++
|
||||
QMAKE_CC = $${QMAKE_CXX}
|
||||
OBJECTS_DIR = temp/obj
|
||||
MOC_DIR = temp/moc
|
||||
DEFINES *= WINDOWS_SYS WIN32 STATICLIB MINGW WIN32_LEAN_AND_MEAN _USE_32BIT_TIME_T
|
||||
|
@ -259,7 +259,7 @@ win32 {
|
|||
################################# MacOSX ##########################################
|
||||
|
||||
mac {
|
||||
QMAKE_CC = g++
|
||||
QMAKE_CC = $${QMAKE_CXX}
|
||||
OBJECTS_DIR = temp/obj
|
||||
MOC_DIR = temp/moc
|
||||
#DEFINES = WINDOWS_SYS WIN32 STATICLIB MINGW
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue