Skip to Content.
Sympa Menu

freetds - Re: [freetds] 0.63 Release Candidate 1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: joshua stein <jcs AT jcs.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] 0.63 Release Candidate 1
  • Date: Thu, 2 Dec 2004 15:02:48 -0600

> Well, RC2 should work for you however this patch should solve too

neither works, ld is still finding the older tds library in
/usr/local/lib.

at least on openbsd, ld searches directories for libraries in the
order they're given on the command line, even if a library with a
greater major version exists in any of the other paths given because
it stops searching when it finds any suitable match.

libtool is turning:

/bin/sh ../../libtool --mode=link cc -O2 -pipe -L/usr/local/lib \
-o tsql tsql.o -lncurses -lreadline ../tds/libtds.la -lc

into:

cc -O2 -pipe -o .libs/tsql tsql.o -L/usr/local/lib -lncurses \
-lreadline -L../tds/.libs -ltds -liconv -Wl,-rpath,/usr/local/lib

but libtool needs to put its own '-L../tds/.libs' first before
-L/usr/local/lib being given in LDFLAGS:

cc -O2 -pipe -o .libs/tsql tsql.o -L../tds/.libs -L/usr/local/lib \
-lncurses -lreadline -ltds -liconv -Wl,-rpath,/usr/local/lib

i'm not sure how to tell libtool to do that, though.




Archive powered by MHonArc 2.6.24.

Top of Page