From 9a13bf87592cf9db5d3a1aa3b984abc125b19af1 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Sun, 4 Apr 2010 12:55:22 +0200 Subject: [PATCH] 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. --- bacula/autoconf/bacula-macros/db.m4 | 2 +- bacula/configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5