[freetds] 0.63 Release Candidate 1
joshua stein
jcs at jcs.org
Thu Dec 2 16:02:48 EST 2004
> 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.
More information about the FreeTDS
mailing list