aboutsummaryrefslogtreecommitdiff
path: root/libs/postgresql
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-05-23 19:15:52 -0700
committerRosen Penev <rosenp@gmail.com>2020-05-23 19:15:52 -0700
commit068b5642bf2cbb89e9c9a3396aea39f7e3f06f6d (patch)
tree64f06fc85881cd8ac7d26dbe1d822373b3b4ebe8 /libs/postgresql
parentdccfa50d1f1296f1d085d55440a4bb479a64b0f7 (diff)
postgresql: fix compilation with GCC4
The minimum version of GCC according to prereq-build.mk is 4.8 which defaults to gnu89. This breaks the host build when the host GCC is less than 5, which defaults to gnu99. Add a simple CFLAG to fix. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'libs/postgresql')
-rw-r--r--libs/postgresql/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/postgresql/Makefile b/libs/postgresql/Makefile
index 77e0f1bce..c33bbd442 100644
--- a/libs/postgresql/Makefile
+++ b/libs/postgresql/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=postgresql
PKG_VERSION:=12.1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=PostgreSQL
PKG_CPE_ID:=cpe:/a:postgresql:postgresql
@@ -156,6 +156,8 @@ CONFIGURE_ARGS += \
--enable-depend \
$(if $(CONFIG_arc),--disable-spinlocks)
+HOST_CFLAGS += -std=gnu99
+
# Need a native zic and pg_config for build
define Host/Compile
+$(HOST_MAKE_VARS) MAKELEVEL=0 $(MAKE) -C $(HOST_BUILD_DIR)/src/bin/pg_config CC="$(HOSTCC)"