unixodbc: Add the new recipe

unixODBC is an Open Source ODBC sub-system and an
ODBC SDK for Linux, Mac OSX, and UNIX.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Jackie Huang
2016-07-26 05:18:07 -04:00
committed by Martin Jansa
parent f9f857807d
commit 8bb4a8bc5b
2 changed files with 70 additions and 0 deletions
@@ -0,0 +1,43 @@
Subject: [PATCH] do not use libltdl source directory
Don't use the included libltdl, use the one provided
by our libtool instead.
Upstream-Status: Inappropriate [configuration]
Signed-off-by: Song.Li <Song.Li@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
Makefile.am | 1 -
configure.ac | 2 --
2 files changed, 3 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index e881cca..1321802 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,7 +5,6 @@ SUBDIRS = \
log \
lst \
ini \
- libltdl \
odbcinst \
DriverManager \
exe \
diff --git a/configure.ac b/configure.ac
index 218502f..d50b7af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -136,9 +136,7 @@ dnl AC_CONFIG_MACRO_DIR([libltdl/m4])
dnl LT_CONFIG_LTDL_DIR([libltdl])
dnl LTDL_INIT
-LT_CONFIG_LTDL_DIR([libltdl])
LT_INIT([dlopen])
-LTDL_INIT([convenience])
dnl Substitute INCLTDL and LIBLTDL in the Makefiles
AC_SUBST(LTDLINCL)
--
2.8.1
@@ -0,0 +1,27 @@
SUMMARY = "An Open Source ODBC sub-system"
DESCRIPTION = "unixODBC is an Open Source ODBC sub-system and an ODBC SDK \
for Linux, Mac OSX, and UNIX."
HOMEPAGE = "http://www.unixodbc.org/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7b37bf80a3df5a65b355433ae36d206"
DEPENDS = "libtool mysql5"
SRC_URI = "ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-${PV}.tar.gz \
file://do-not-use-libltdl-source-directory.patch \
"
SRC_URI[md5sum] = "bd25d261ca1808c947cb687e2034be81"
SRC_URI[sha256sum] = "2e1509a96bb18d248bf08ead0d74804957304ff7c6f8b2e5965309c632421e39"
inherit autotools-brokensep
S = "${WORKDIR}/unixODBC-${PV}"
EXTRA_OEMAKE += "LIBS=-lltdl"
do_configure_prepend() {
# old m4 files will cause libtool version don't match
rm -rf m4/*
rm -fr libltdl
}