Using $libdir doesn't work and produces an error when configuring with ./configure --with-unixodbc=$(brew --prefix)
configure:21209: gcc -o conftest -g -O2 -Wall -Werror -L/opt/homebrew/${exec_prefix}/lib conftest.c -lodbcinst >&5
ld: warning: directory not found for option '-L/opt/homebrew/${exec_prefix}/lib'
ld: library not found for -lodbcinst
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Note that warning: directory not found for option '-L/.../${exec_prefix}/lib' is always emitted but if unixodbc is installed in /usr/local/lib linking would still work.
Using
$libdir
doesn't work and produces an error when configuring with./configure --with-unixodbc=$(brew --prefix)
Note that
warning: directory not found for option '-L/.../${exec_prefix}/lib'
is always emitted but if unixodbc is installed in/usr/local/lib
linking would still work.