From b0699060c91345fdb964a4acbb6e26e77b8046cb Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 27 Oct 2023 17:01:10 +0800 Subject: [PATCH] unixodbc: Use default build recipes Signed-off-by: Jeffery To --- libs/unixodbc/Makefile | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/libs/unixodbc/Makefile b/libs/unixodbc/Makefile index cd006066d4..c3c17b7030 100644 --- a/libs/unixodbc/Makefile +++ b/libs/unixodbc/Makefile @@ -24,6 +24,7 @@ HOST_BUILD_DIR:=$(BUILD_DIR)/host/unixODBC-$(PKG_VERSION) HOST_BUILD_DEPENDS:=unixodbc PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 # if your other package depends on unixodbc and needs # odbc_config, add to your other Makefile @@ -81,19 +82,6 @@ define Package/pgsqlodbc/description Postgresql driver for ODBC. endef -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - DESTDIR="$(PKG_INSTALL_DIR)" \ - $(MAKE_FLAGS) \ - ARCH="$(ARCH)" \ - CC="$(TARGET_CC)" - $(MAKE) -C $(PKG_BUILD_DIR) \ - DESTDIR="$(PKG_INSTALL_DIR)" \ - $(MAKE_FLAGS) \ - ARCH="$(ARCH)" \ - install -i -endef - define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/$(STAGING_DIR)/usr/include/*.h $(1)/usr/include/ @@ -141,12 +129,7 @@ define Host/Configure endef define Host/Compile - $(MAKE) -C $(HOST_BUILD_DIR)/exe \ - DESTDIR="$(HOST_INSTALL_DIR)" \ - CC="$(HOSTCC)" \ - CFLAGS="$(HOST_CFLAGS) \ - LDFLAGS="$(HOST_LDFLAGS)" \ - odbc_config + $(call Host/Compile/Default,-C $(HOST_BUILD_DIR)/exe odbc_config) endef define Host/Install -- 2.30.2