Reputation: 1112
I am overriding some QMAKE variables with my own values. However, when I check the makefile QMake generated, I can see that QMake is putting some extra values in it and I can't find a way to prevent that, or to "clean" a variable.
Here is a sample of my project file :
marvell_release {
QMAKE_CC=/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc
QMAKE_CXX=/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-g++
QMAKE_CFLAGS=-pipe
QMAKE_CXXFLAGS=-pipe
QMAKE_LINK=/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ld
QMAKE_LFLAGS=
}
And here is what QMake generated from the project file :
CC = /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc
CXX = /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-g++
DEFINES =
CFLAGS = -pipe -O2 -Wall -W -fPIE $(DEFINES)
CXXFLAGS = -pipe -O2 -Wall -W -fPIE $(DEFINES)
INCPATH = -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64
LINK = /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ld
LFLAGS = -Wl,-O1
As you can see, the LFLAGS variable contains two options that I didn't specify and that I would like to remove. Does anyone know how to do that, or the explanation of why are these values being appended?
Upvotes: 0
Views: 978
Reputation: 141
Custom your own mkspec for qmake, reference could be: https://github.com/qtproject/qtbase/tree/5.5/mkspecs/devices
Upvotes: 1