From: Marco van Wieringen Date: Sun, 4 Apr 2010 10:55:22 +0000 (+0200) Subject: Use -lq.1 -lcompat.1 as shared libraries instead of linking with -lingres which is... X-Git-Tag: Release-7.0.0~1998 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e1a7fead90254f7ffb36df2d5e1cd493e0778fe4;p=bacula%2Fbacula Use -lq.1 -lcompat.1 as shared libraries instead of linking with -lingres which is a static library. Also need to change generated code of esqlcc a bit to get things to link with the IIsqlca function. --- diff --git a/bacula/autoconf/bacula-macros/db.m4 b/bacula/autoconf/bacula-macros/db.m4 index 892447f6b2..7e75263f0a 100644 --- a/bacula/autoconf/bacula-macros/db.m4 +++ b/bacula/autoconf/bacula-macros/db.m4 @@ -565,7 +565,7 @@ AC_HELP_STRING([--with-ingres@<:@=DIR@:>@], [Include Ingres support. DIR is the fi fi SQL_INCLUDE=-I$INGRES_INCDIR - SQL_LFLAGS="-L$INGRES_LIBDIR -lingres" + SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1" SQL_BINDIR=$INGRES_BINDIR SQL_LIB=$INGRES_LIBDIR/libingres.a AC_DEFINE(HAVE_INGRES, 1, [Set if have Ingres Database]) diff --git a/bacula/configure b/bacula/configure index bf066735c0..200087b2a8 100755 --- a/bacula/configure +++ b/bacula/configure @@ -28522,7 +28522,7 @@ echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres h fi fi SQL_INCLUDE=-I$INGRES_INCDIR - SQL_LFLAGS="-L$INGRES_LIBDIR -lingres" + SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1" SQL_BINDIR=$INGRES_BINDIR SQL_LIB=$INGRES_LIBDIR/libingres.a