kumquat-buildroot/package/libpqxx/libpqxx.mk
James Knight 1e0e8540eb package/libpqxx: needs C++17
libpqxx's v7.x series requires C++17 support. Adjust the configuration
selection to require a newer toolchain, as well as force a C++17
standard to ensure libpqxx's custom C++ standard check [1] passes.

Fixes:
 - http://autobuild.buildroot.net/results/a79cb93aec74acc8e32809530c09e26bebaf16e4/
 - http://autobuild.buildroot.net/results/ae1a02b5238b650cdc79edb298c398b078882cfc/

[1]: https://github.com/jtv/libpqxx/blob/7.7.5/configure.ac#L106-L124

Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2023-05-21 16:23:09 +02:00

19 lines
540 B
Makefile

################################################################################
#
# libpqxx
#
################################################################################
LIBPQXX_VERSION = 7.7.5
LIBPQXX_SITE = $(call github,jtv,libpqxx,$(LIBPQXX_VERSION))
LIBPQXX_INSTALL_STAGING = YES
LIBPQXX_DEPENDENCIES = postgresql
LIBPQXX_LICENSE = BSD-3-Clause
LIBPQXX_LICENSE_FILES = COPYING
LIBPQXX_CONF_ENV = \
ac_cv_path_PG_CONFIG=$(STAGING_DIR)/usr/bin/pg_config \
CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++17"
$(eval $(autotools-package))