diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-10-27 16:18:36 +0800 |
|---|---|---|
| committer | Rosen Penev <rosenp@gmail.com> | 2023-10-30 13:25:58 -0700 |
| commit | ec2ca90dc10c883200089b52ac5b5cef9a2256d9 (patch) | |
| tree | 54cfca95cefce26cfbe18c0e0306056eab27f9b1 /libs | |
| parent | 61de50de5f787b08e06de9425ec409c8fd1ffcbf (diff) | |
unixodbc: Use InstallDev directory to transfer include files
This uses the default InstallDev directory instead of a "tmp" directory
to transfer include files from the target package to host build.
Using a "tmp" directory implies that the files inside are safe to
delete, but without these include files the host build will not succeed.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/unixodbc/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/unixodbc/Makefile b/libs/unixodbc/Makefile index c99b8e4f6..cd006066d 100644 --- a/libs/unixodbc/Makefile +++ b/libs/unixodbc/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=unixodbc PKG_VERSION:=2.3.9 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=unixODBC-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.unixodbc.org @@ -99,9 +99,9 @@ define Build/InstallDev $(CP) $(PKG_INSTALL_DIR)/$(STAGING_DIR)/usr/include/*.h $(1)/usr/include/ # Save autoconf config.h file for host build # copy target autoconf config.h and unixodbc_conf.h file for host build - $(INSTALL_DIR) $(1)/tmp/unixodbc - $(CP) $(PKG_BUILD_DIR)/config.h $(1)/tmp/unixodbc/ - $(CP) $(PKG_BUILD_DIR)/unixodbc_conf.h $(1)/tmp/unixodbc/ + $(INSTALL_DIR) $(1)/usr/include/unixodbc + $(CP) $(PKG_BUILD_DIR)/config.h $(1)/usr/include/unixodbc/ + $(CP) $(PKG_BUILD_DIR)/unixodbc_conf.h $(1)/usr/include/unixodbc/ $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ $(INSTALL_DIR) $(1)/etc @@ -135,9 +135,9 @@ endef define Host/Configure $(call Host/Configure/Default) - cp $(STAGING_DIR)/tmp/unixodbc/config.h $(HOST_BUILD_DIR) + cp $(STAGING_DIR)/usr/include/unixodbc/config.h $(HOST_BUILD_DIR) sed -i -e 's!\(LIB_PREFIX \).*$$$$!\1"$(STAGING_DIR)/usr/lib"!' $(HOST_BUILD_DIR)/config.h - cp $(STAGING_DIR)/tmp/unixodbc/unixodbc_conf.h $(HOST_BUILD_DIR) + cp $(STAGING_DIR)/usr/include/unixodbc/unixodbc_conf.h $(HOST_BUILD_DIR) endef define Host/Compile |
