Skip to content

Commit 0c1559d

Browse files
committed
Add standard Linux paths to libpq.def
Add `/usr/include` and `/usr/lib64` to compiler and linker options respectively. This should cover majority of x64 linux systems.
1 parent e30589e commit 0c1559d

File tree

1 file changed

+2
-2
lines changed
  • postgres-native-sqldelight-driver/src/nativeInterop/cinterop

1 file changed

+2
-2
lines changed

postgres-native-sqldelight-driver/src/nativeInterop/cinterop/libpq.def

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ package = libpq
44
#staticLibraries = libpq.a
55
#libraryPaths = /opt/homebrew/opt/libpq/lib
66

7-
compilerOpts = -I/home/linuxbrew/.linuxbrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include -I/usr/local/opt/libpq/include
8-
linkerOpts = -L/home/linuxbrew/.linuxbrew/opt/libpq/lib -L/opt/homebrew/opt/libpq/lib -L/usr/local/opt/libpq/lib -lpq
7+
compilerOpts = -I/home/linuxbrew/.linuxbrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include -I/usr/local/opt/libpq/include -I/usr/include
8+
linkerOpts = -L/home/linuxbrew/.linuxbrew/opt/libpq/lib -L/opt/homebrew/opt/libpq/lib -L/usr/local/opt/libpq/lib -L/usr/lib64 -lpq

0 commit comments

Comments
 (0)