mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
postgresql: enable uclibc build
Build with uclibc and locale support failes with the following error
message:
regc_pg_locale.c: In function ‘pg_wc_isdigit’:
regc_pg_locale.c:312:6: error: dereferencing pointer to incomplete type
isdigit_l((unsigned char) c, pg_regex_locale));
This can be fixed by overwriting the HAVE_LOCALE_T detection (thanks
to Alex Potapenko <opotapenko@gmail.com> for the hint [1]).
[1] http://lists.busybox.net/pipermail/buildroot/2015-March/121088.html
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
3201c7746d
commit
f5e4ca1022
@@ -1,9 +1,5 @@
|
|||||||
config BR2_PACKAGE_POSTGRESQL
|
config BR2_PACKAGE_POSTGRESQL
|
||||||
bool "postgresql"
|
bool "postgresql"
|
||||||
# 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.
|
|
||||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
|
||||||
help
|
help
|
||||||
PostgreSQL is a powerful, open source object-relational
|
PostgreSQL is a powerful, open source object-relational
|
||||||
database system.
|
database system.
|
||||||
@@ -16,6 +12,3 @@ config BR2_PACKAGE_POSTGRESQL
|
|||||||
archives with pg_dump and pg_restore.
|
archives with pg_dump and pg_restore.
|
||||||
|
|
||||||
http://www.postgresql.org
|
http://www.postgresql.org
|
||||||
|
|
||||||
comment "postgresql needs a toolchain w/ glibc"
|
|
||||||
depends on !BR2_TOOLCHAIN_USES_GLIBC
|
|
||||||
|
|||||||
@@ -13,6 +13,14 @@ POSTGRESQL_LICENSE_FILES = COPYRIGHT
|
|||||||
POSTGRESQL_INSTALL_STAGING = YES
|
POSTGRESQL_INSTALL_STAGING = YES
|
||||||
POSTGRESQL_CONFIG_SCRIPTS = pg_config
|
POSTGRESQL_CONFIG_SCRIPTS = pg_config
|
||||||
|
|
||||||
|
ifeq ($(BR2_TOOLCHAIN_USES_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
|
||||||
|
POSTGRESQL_CONF_ENV += pgac_cv_type_locale_t=no
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||||
POSTGRESQL_CONF_OPTS += --disable-thread-safety
|
POSTGRESQL_CONF_OPTS += --disable-thread-safety
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user