aboutsummaryrefslogtreecommitdiff
path: root/libs/unixodbc
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-10-27 17:01:10 +0800
committerRosen Penev <rosenp@gmail.com>2023-10-30 13:25:58 -0700
commitb0699060c91345fdb964a4acbb6e26e77b8046cb (patch)
tree973e68f4b626f96d553a9d58db7d1097de59780c /libs/unixodbc
parentec2ca90dc10c883200089b52ac5b5cef9a2256d9 (diff)
unixodbc: Use default build recipes
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'libs/unixodbc')
-rw-r--r--libs/unixodbc/Makefile21
1 files changed, 2 insertions, 19 deletions
diff --git a/libs/unixodbc/Makefile b/libs/unixodbc/Makefile
index cd006066d..c3c17b703 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