From: Daniel Golle Date: Fri, 26 Aug 2016 18:23:30 +0000 (+0200) Subject: postgresql: make host-built-tools safe for rebuilds X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3d3918bb9a7cc67e493145702ddc3fa015b82d70;p=openwrt-packages.git postgresql: make host-built-tools safe for rebuilds Signed-off-by: Daniel Golle --- diff --git a/libs/postgresql/Makefile b/libs/postgresql/Makefile index 21ec5996f..174159cff 100644 --- a/libs/postgresql/Makefile +++ b/libs/postgresql/Makefile @@ -116,13 +116,16 @@ define Build/Configure --enable-depend \ --with-system-timezone=/tmp \ ); + $(MAKE) -C $(PKG_BUILD_DIR)/src/interfaces/ecpg/preproc clean $(MAKE) -C $(PKG_BUILD_DIR)/src/interfaces/ecpg/preproc CC="$(HOSTCC)" mv $(PKG_BUILD_DIR)/src/interfaces/ecpg/preproc/ecpg \ $(PKG_BUILD_DIR)/src/interfaces/ecpg/preproc/ecpg.host + $(MAKE) -C $(PKG_BUILD_DIR)/src/timezone clean $(MAKE) -C $(PKG_BUILD_DIR)/src/timezone CC="$(HOSTCC)" mv $(PKG_BUILD_DIR)/src/timezone/zic $(PKG_BUILD_DIR)/host-zic $(INSTALL_DIR) $(STAGING_DIR)/host/bin/ $(CP) $(PKG_BUILD_DIR)/host-zic $(STAGING_DIR)/host/bin/zic + $(MAKE) -C $(PKG_BUILD_DIR)/src/bin/pg_config clean $(MAKE) -C $(PKG_BUILD_DIR)/src/bin/pg_config CC="$(HOSTCC)" mv $(PKG_BUILD_DIR)/src/bin/pg_config/pg_config \ $(PKG_BUILD_DIR)/src/bin/pg_config/pg_config.host