This patch modifies the cppcms package in order to support uClibc-based
toolchains.
The booster library by default compiles with the posix backend under
Linux, but this needs monetary.h which isn't provided by uClibc, so
work around that with the help of the DISABLE_POSIX_LOCALE configure
option.
Signed-off-by: Lucile Quirion <lucile.quirion@savoirfairelinux.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
select BR2_PACKAGE_PCRE
select BR2_PACKAGE_LIBGCRYPT
depends on BR2_INSTALL_LIBSTDCPP
- # cppcms uses <monetary.h> which doesn't exist in uClibc
- depends on BR2_TOOLCHAIN_USES_GLIBC
help
CppCMS is a Free High Performance Web Development Framework
(not a CMS) aimed for Rapid Web Application Development. It
endif
-comment "cppcms needs an (e)glibc toolchain w/ C++"
- depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC
+comment "cppcms needs a toolchain w/ C++"
+ depends on !BR2_INSTALL_LIBSTDCPP
CPPCMS_DEPENDENCIES += icu
endif
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
+# posix backend needs monetary.h which isn't available on uClibc
+CPPCMS_CONF_OPT += -DDISABLE_POSIX_LOCALE=on
+endif
+
# We copy cppcms_tmpl_cc from staging to host because this file can be
# needed for compiling packages using cppcms. And it is not worth
# creating a host package just for a python script.