mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
-lodbc may need $LTHREAD_LIBS
This commit is contained in:
parent
3eb87b2faa
commit
89bae499ed
@ -2069,6 +2069,9 @@ if test $ol_enable_sql != no ; then
|
|||||||
AC_MSG_ERROR([could not locate SQL headers])
|
AC_MSG_ERROR([could not locate SQL headers])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
sql_LIBS="$LIBS"
|
||||||
|
LIBS="$LTHREAD_LIBS"
|
||||||
|
|
||||||
AC_CHECK_LIB(iodbc,SQLDriverConnect,[have_iodbc=yes],[have_iodbc=no])
|
AC_CHECK_LIB(iodbc,SQLDriverConnect,[have_iodbc=yes],[have_iodbc=no])
|
||||||
if test $have_iodbc = yes ; then
|
if test $have_iodbc = yes ; then
|
||||||
ol_link_sql="-liodbc"
|
ol_link_sql="-liodbc"
|
||||||
@ -2079,6 +2082,8 @@ if test $ol_enable_sql != no ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LIBS="$sql_LIBS"
|
||||||
|
|
||||||
if test $ol_link_sql != no ; then
|
if test $ol_link_sql != no ; then
|
||||||
SLAPD_SQL_LIBS="$ol_link_sql"
|
SLAPD_SQL_LIBS="$ol_link_sql"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user