Commit 98a079fc authored by Jonathan Liu's avatar Jonathan Liu
Browse files

Include QMAKE_CC when extracting C compiler flags


This fixes cross-compile settings detection for cross-compilation
environments where the C compiler cross-compilation flags are set in
CC/QMAKE_CC instead of CFLAGS/QMAKE_CFLAGS (e.g. OpenEmbedded).

Change-Id: I0a7b0f6c47a00775ec18073a16359c8351363285
Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
Showing with 1 addition and 1 deletion
......@@ -35,7 +35,7 @@ defineReplace(getChromiumSrcDir) {
}
defineReplace(extractCFlag) {
CFLAGS = $$QMAKE_CFLAGS
CFLAGS = $$QMAKE_CC $$QMAKE_CFLAGS
!isEmpty(ANDROID_TARGET_CFLAGS): CFLAGS = $$ANDROID_TARGET_CFLAGS
OPTION = $$find(CFLAGS, $$1)
OPTION = $$split(OPTION, =)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment