mdbtools / mdbtools

MDB Tools - Read Access databases on *nix
GNU General Public License v2.0
1.02k stars 211 forks source link

Fix ODBC_LIBS for unixODBC #415

Closed 0xced closed 1 year ago

0xced commented 1 year ago

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.

evanmiller commented 1 year ago

Thanks!