Add mfloat-abi to linker flags for ARM devices

Cross compilers from latest yocto (dizzy) are no longer built with
default value for mfloat-abi, which means it needs to be given for
both compiler and linker to produce correct binaries. Otherwise
linker will selected dynamic linker as /lib/ld-linux.so.3, instead
of /lib/ld-linux-armhf.so.3 when compiling for hard-float.

Change-Id: I2fe116b1a90a0fbd078a4e8757abd4bc64a7b56e
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
Samuli Piippo 2015-02-26 11:53:04 +02:00 committed by Laszlo Agocs
parent 2e63f7bf92
commit efe3f631f2
2 changed files with 3 additions and 0 deletions

View File

@ -1,7 +1,9 @@
contains(DISTRO_OPTS, hard-float) {
COMPILER_FLAGS += -mfloat-abi=hard
LINKER_FLAGS += -mfloat-abi=hard
} else {
COMPILER_FLAGS += -mfloat-abi=softfp
LINKER_FLAGS += -mfloat-abi=softfp
}
include(linux_device_post.conf)

View File

@ -5,5 +5,6 @@ contains(DISTRO_OPTS, deb-multi-arch) {
QMAKE_CFLAGS += $$COMPILER_FLAGS
QMAKE_CXXFLAGS += $$COMPILER_FLAGS
QMAKE_LFLAGS += $$LINKER_FLAGS
deviceSanityCheckCompiler()