unixodbc: Change host build directories to be target-specific
Since the host odbc_config returns target-specific information, it should be built and placed into target-specific locations. This changes HOST_BUILD_DIR to be in $(BUILD_DIR)/host, and installs odbc_config inside $(STAGING_DIR)/host. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
parent
f3d25a7472
commit
61de50de5f
1 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=unixodbc
|
||||
PKG_VERSION:=2.3.9
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=unixODBC-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.unixodbc.org
|
||||
|
@ -20,7 +20,7 @@ PKG_LICENSE:=prog GPL libs LGPL
|
|||
PKG_CPE_ID:=cpe:/a:unixodbc:unixodbc
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/unixODBC-$(PKG_VERSION)
|
||||
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/unixODBC-$(PKG_VERSION)
|
||||
HOST_BUILD_DIR:=$(BUILD_DIR)/host/unixODBC-$(PKG_VERSION)
|
||||
HOST_BUILD_DEPENDS:=unixodbc
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
@ -150,8 +150,8 @@ define Host/Compile
|
|||
endef
|
||||
|
||||
define Host/Install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
|
||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/exe/odbc_config $(STAGING_DIR_HOST)/bin
|
||||
$(INSTALL_DIR) $(STAGING_DIR)/host/bin
|
||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/exe/odbc_config $(STAGING_DIR)/host/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,unixodbc))
|
||||
|
|
Loading…
Reference in a new issue