Fix QtBase cross compilation in debug mode for iMX6 targets.
The platform specific CFLAGS, most notably -march=armv7-a, were only added to QMake's _RELEASE flags but not to the _DEBUG flags. This then resulted in strange compilation errors such as this one: http://qt-project.org/forums/viewthread/22141 Change-Id: Ib47996c6946b043294437e8543827da270df836d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
f12cc9c648
commit
90cb4d8e2e
@ -27,9 +27,12 @@ QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL
|
||||
|
||||
QMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib
|
||||
|
||||
IMX6_CFLAGS = -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1
|
||||
QMAKE_CFLAGS_RELEASE += $$IMX6_CFLAGS
|
||||
QMAKE_CXXFLAGS_RELEASE += $$IMX6_CFLAGS
|
||||
IMX6_CFLAGS = -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1
|
||||
IMX6_CFLAGS_RELEASE = -O2 $$IMX6_CFLAGS
|
||||
QMAKE_CFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
|
||||
QMAKE_CXXFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
|
||||
QMAKE_CFLAGS_DEBUG += $$IMX6_CFLAGS
|
||||
QMAKE_CXXFLAGS_DEBUG += $$IMX6_CFLAGS
|
||||
|
||||
include(../common/linux_device_post.conf)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user