summaryrefslogtreecommitdiff
path: root/libs/postgresql
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2017-06-24 14:39:34 +0200
committerDaniel Golle <daniel@makrotopia.org>2017-06-24 15:05:59 +0200
commit66afa3c3ea011643462f042b226a5a02a7bec56e (patch)
tree8609dcd005e02f2327d7ed5c57d4712a47da45ba /libs/postgresql
parent2c282bd952d5036157d4d0a15a95660d7c37f5f0 (diff)
postgresql: fix host build and correctly apply NLS
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'libs/postgresql')
-rw-r--r--libs/postgresql/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/libs/postgresql/Makefile b/libs/postgresql/Makefile
index dae5e7b83..431729f04 100644
--- a/libs/postgresql/Makefile
+++ b/libs/postgresql/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=postgresql
PKG_VERSION:=9.4.12
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=PostgreSQL
@@ -20,7 +20,7 @@ PKG_MD5SUM:=fca055481875d1c49e31c28443f56472a1474b3fbe25b7ae64440c6118f82e64
PKG_USE_MIPS16:=0
PKG_FIXUP:=autoreconf
PKG_MACRO_PATHS:=config
-PKG_BUILD_DEPENDS += postgresql/host
+PKG_BUILD_DEPENDS += readline/host postgresql/host
PKG_INSTALL:=1
include $(INCLUDE_DIR)/host-build.mk
@@ -125,7 +125,6 @@ endif
TARGET_CONFIGURE_OPTS+=$(PGSQL_CONFIG_VARS)
HOST_CONFIGURE_ARGS += \
- $(DISABLE_NLS) \
--disable-rpath \
--without-bonjour \
--without-gssapi \
@@ -140,6 +139,7 @@ HOST_CONFIGURE_ARGS += \
--enable-depend
CONFIGURE_ARGS += \
+ $(DISABLE_NLS) \
--disable-rpath \
--without-bonjour \
--without-gssapi \
@@ -157,11 +157,16 @@ EXTRA_CFLAGS:= -I$(PKG_BUILD_DIR)/src/include/
# Need a native ecpg and zic for build
define Host/Compile
+ $(MAKE) -C $(HOST_BUILD_DIR)/src/common CC="$(HOSTCC)"
+ $(MAKE) -C $(HOST_BUILD_DIR)/src/port CC="$(HOSTCC)"
$(MAKE) -C $(HOST_BUILD_DIR)/src/interfaces/ecpg/preproc CC="$(HOSTCC)"
$(MAKE) -C $(HOST_BUILD_DIR)/src/timezone CC="$(HOSTCC)"
endef
define Host/Install
+ $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/lib/
+ $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/common/libpgcommon.a $(STAGING_DIR_HOSTPKG)/lib/
+ $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/port/libpgport.a $(STAGING_DIR_HOSTPKG)/lib/
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/interfaces/ecpg/preproc/ecpg $(STAGING_DIR_HOSTPKG)/bin/
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/timezone/zic $(STAGING_DIR_HOSTPKG)/bin/