postgresql: fix uclibc locale.h bug
authorDirk Neukirchen <dirkneukirchen@web.de>
Fri, 21 Aug 2015 07:53:39 +0000 (09:53 +0200)
committerDirk Neukirchen <dirkneukirchen@web.de>
Fri, 21 Aug 2015 08:05:06 +0000 (10:05 +0200)
reported in forum:
https://forum.openwrt.org/viewtopic.php?id=59137

issue was discovered and fixed already in buildroot
git commit id: f5e4ca10220e2325d3a34c0a423388e40b27dbdf

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
libs/postgresql/Makefile

index dd4b28ef60fc56cc34f3a693970d8fad26c3c69d..ebec6cad0e5a5475642c6b7581678864dc900da0 100644 (file)
@@ -66,9 +66,21 @@ define Package/pgsql-server/description
 PostgreSQL databases Server.
 endef
 
+ifeq ($(CONFIG_USE_UCLIBC),y)
+# PostgreSQL does not build against uClibc with locales
+# enabled, due to an uClibc bug, see
+# http://lists.uclibc.org/pipermail/uclibc/2014-April/048326.html
+# so overwrite automatic detection and disable locale support
+PGSQL_CONFIG_VARS+= \
+               pgac_cv_type_locale_t=no
+endif
+
+TARGET_CONFIGURE_OPTS+=$(PGSQL_CONFIG_VARS)
+
 # Need a native ecpg ,pg_config, and zic for build
 define Build/Configure
        (cd $(PKG_BUILD_DIR); rm -f config.cache; \
+               $(PGSQL_CONFIG_VARS) \
                ./configure \
                        --prefix=/usr \
                        --exec-prefix=/usr \