config BR2_PACKAGE_QT_PSQL
bool "PostgreSQL Driver"
- depends on BROKEN # libpgsql not in BR
+ select BR2_PACKAGE_POSTGRESQL
+ depends on BR2_TOOLCHAIN_USES_GLIBC
help
Build PostgreSQL driver
If unsure, say n.
+comment "PostgreSQL needs an (e)glibc toolchain"
+ depends on !BR2_TOOLCHAIN_USES_GLIBC
+
choice
prompt "SQLite 3 support"
default BR2_PACKAGE_QT_SQLITE_NONE
endif
ifeq ($(BR2_PACKAGE_QT_PSQL),y)
QT_CONFIGURE_OPTS += -qt-sql-psql
+QT_CONFIGURE_ENV += PSQL_LIBS=-L$(STAGING_DIR)/usr/lib
+QT_DEPENDENCIES += postgresql
endif
ifeq ($(BR2_PACKAGE_QT_SQLITE_QT),y)
QT_CONFIGURE_OPTS += -qt-sql-sqlite
PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \
+ $(QT_CONFIGURE_ENV) \
MAKEFLAGS="$(MAKEFLAGS) -j$(PARALLEL_JOBS)" ./configure \
$(if $(VERBOSE),-verbose,-silent) \
-force-pkg-config \