qt: fix build with external toolchain

Set QMAKE_LFLAGS so that at link time --sysroot is passed to the
linker, and Qt finds the external libraries. This fixes Qt build when
zlib or other libraries are external, instead of using Qt's internal
copy.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas Petazzoni 2009-07-27 11:54:35 +02:00
parent 2845fa66ce
commit 072d89a883
1 changed files with 1 additions and 0 deletions

View File

@ -448,6 +448,7 @@ endif
$(call QT_QMAKE_SET,STRIP,$(TARGET_STRIP)) $(call QT_QMAKE_SET,STRIP,$(TARGET_STRIP))
$(call QT_QMAKE_SET,CFLAGS,$(TARGET_CFLAGS)) $(call QT_QMAKE_SET,CFLAGS,$(TARGET_CFLAGS))
$(call QT_QMAKE_SET,CXXFLAGS,$(TARGET_CXXFLAGS)) $(call QT_QMAKE_SET,CXXFLAGS,$(TARGET_CXXFLAGS))
$(call QT_QMAKE_SET,LFLAGS,$(TARGET_LDFLAGS))
-[ -f $(QT_QCONFIG_FILE) ] && cp $(QT_QCONFIG_FILE) \ -[ -f $(QT_QCONFIG_FILE) ] && cp $(QT_QCONFIG_FILE) \
$(QT_TARGET_DIR)/$(QT_QCONFIG_FILE_LOCATION) $(QT_TARGET_DIR)/$(QT_QCONFIG_FILE_LOCATION)
# Qt doesn't use PKG_CONFIG, it searches for pkg-config with 'which'. # Qt doesn't use PKG_CONFIG, it searches for pkg-config with 'which'.