We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff87d13 commit 815dabaCopy full SHA for 815daba
postgresql-libpq.cabal
@@ -65,9 +65,17 @@ Library
65
if flag(use-pkg-config)
66
Pkgconfig-depends: libpq >=9.3
67
else
68
- Extra-Libraries: pq
69
- if os(openbsd)
70
- Extra-Libraries: crypto ssl
+ if os(windows)
+ -- Due to https://sourceware.org/bugzilla/show_bug.cgi?id=22948,
+ -- if we specify pq instead of libpq, then ld might link against
71
+ -- libpq.dll directly, which can lead to segfaults. As a temporary hack,
72
+ -- we force ld to link against the libpq.lib import library directly
73
+ -- by specifying libpq here.
74
+ Extra-Libraries: libpq
75
+ else
76
+ Extra-Libraries: pq
77
+ if os(openbsd)
78
+ Extra-Libraries: crypto ssl
79
80
-- Other-modules:
81
Build-tools: hsc2hs
0 commit comments