TARGET_LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
TARGET_INCDIRS="$(TARGET_INCDIRS)" \
TARGET_LIBDIRS="$(TARGET_LIBDIRS)" \
+ TARGET_LIBS="$(TARGET_LIBS)" \
STAGING_DIR_HOST="$(STAGING_DIR)/../host" \
STAGING_DIR="$(STAGING_DIR)" \
qmake \
QMAKE_CXXFLAGS = $$(TARGET_CFLAGS)
QMAKE_LINK = $$(TARGET_CXX)
QMAKE_LINK_C = $$(TARGET_CC)
+QMAKE_LIBS = $$(TARGET_LIBS)
QMAKE_LFLAGS = $$(TARGET_LDFLAGS) # this will end up in redundant "-L"-strings, as they're already in $QMAKE_LIBDIR_QT, however TARGET_LDFLAGS may contain not only directories but special linker options
#unset vars which would intefere with vars/flags passed over by OpenWrt
QMAKE_CXXFLAGS = $$(TARGET_CFLAGS)
QMAKE_LINK = $$(TARGET_CXX)
QMAKE_LINK_C = $$(TARGET_CC)
+QMAKE_LIBS = $$(TARGET_LIBS)
QMAKE_LFLAGS = $$(TARGET_LDFLAGS) # this will end up in redundant "-L"-strings, as they're already in $QMAKE_LIBDIR_QT, however TARGET_LDFLAGS may contain not only directories but special linker options
#unset vars which would intefere with vars/flags passed over by OpenWrt