On Thu, Jul 21, 2022 at 09:06:53AM -0500, David Wright wrote:
> I thought that was what the attached was (actually for Ubuntu AIUI).
> As I originally wrote, "As if by magic, […] someone else supplies a copy."
> 
> Cheers,
> David.

> #! /bin/sh
> 
> # This shell script saves various pieces of information about the
> # installed version of unixODBC. Packages that interface to
> # unixODBC can use it to configure their build.
> # This file replaces the standard odbc_config, which is not
> # relocatable
> #
> # Author: Alberto Di Meglio <alberto.di.meg...@cern.ch>
> # Public domain
> 
> me=`basename $0`
> mydir=`dirname $0`
> mydir=${mydir%/bin}
> 
> # stored configuration values
> val_prefix="$mydir"
> val_bindir="$mydir/bin"
> val_includedir="$mydir/include"
> val_libdir="$mydir/lib"
> val_libs="-L$mydir/lib -lodbc"
> val_version='2.2.11'

This is not going to give the correct linker arguments.  It's going to
spit out a -L option which is totally unneeded, and worse, the *content*
of that -L option is going to depend on where the operating system thinks
the script has been "installed".

If the script is "installed" in /usr/local/bin/odbc_config, it's going
to spit out -L/usr/local/lib -lodbc.

As the script itself says, 

> # This file replaces the standard odbc_config

So, why not use the "standard odbc_config", whatever that is?

Again, this really needs to be taken up with the upstream maintainers of
the library, and with the Debian maintainer(s) of the Debian packages of
the library.

Reply via email to