Merge pull request #7595 from cotequeiroz/unixodbc_lib-dir
unixodbc: Fix LIB_PREFIX in host build
This commit is contained in:
commit
41712d5904
1 changed files with 5 additions and 1 deletions
|
@ -97,6 +97,8 @@ endef
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
$(CP) $(PKG_INSTALL_DIR)/$(STAGING_DIR)/usr/include/*.h $(1)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/$(STAGING_DIR)/usr/include/*.h $(1)/usr/include/
|
||||||
|
# Save autoconf config.h file for host build
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/config.h $(1)/usr/include/unixodbc_ac_config.h
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
||||||
$(INSTALL_DIR) $(1)/etc
|
$(INSTALL_DIR) $(1)/etc
|
||||||
|
@ -131,7 +133,9 @@ endef
|
||||||
|
|
||||||
define Host/Configure
|
define Host/Configure
|
||||||
$(call Host/Configure/Default)
|
$(call Host/Configure/Default)
|
||||||
cp $(PKG_BUILD_DIR)/config.h $(HOST_BUILD_DIR)
|
# copy target autoconf config.h file for host build
|
||||||
|
cp $(STAGING_DIR)/usr/include/unixodbc_ac_config.h $(HOST_BUILD_DIR)
|
||||||
|
sed -i -e 's!\(LIB_PREFIX \).*$$$$!\1"$(STAGING_DIR)/usr/lib"!' $(HOST_BUILD_DIR)/config.h
|
||||||
cp $(PKG_BUILD_DIR)/unixodbc_conf.h $(HOST_BUILD_DIR)
|
cp $(PKG_BUILD_DIR)/unixodbc_conf.h $(HOST_BUILD_DIR)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue