Skip to content

Commit

Permalink
configure: Fix PostgreSQL detection and configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
arowser committed Nov 16, 2024
1 parent e66653f commit cd35fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ fi
POSTGRES_INCLUDE=""
POSTGRES_LDLIBS=""
if command -v "${PG_CONFIG}" >/dev/null; then
POSTGRES_INCLUDE="-I$("${PG_CONFIG}" --includedir)"
POSTGRES_LDLIBS="-L$("${PG_CONFIG}" --libdir) -lpq"
POSTGRES_INCLUDE="$("${PKG_CONFIG}" --silence-errors --cflags libpq || :)"
POSTGRES_LDLIBS="$("${PKG_CONFIG}" --silence-errors --libs libpq || :)"
fi

# Clean up on exit.
Expand Down

0 comments on commit cd35fe7

Please sign in to comment.