File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 252
252
( pkgs . lib . mkIf pkgs . hostPlatform . isMusl
253
253
( let
254
254
ghcOptions = [
255
+ # Postgresql static is pretty broken in nixpkgs. We can't rely on the
256
+ # pkg-config, so we have to add the correct libraries ourselves
255
257
"-L${ pkgs . postgresql } /lib"
256
258
"-optl-Wl,-lpgport"
257
259
"-optl-Wl,-lpgcommon"
260
+
261
+ # Since we aren't using the postgresql pkg-config, it won't
262
+ # automatically include OpenSSL
263
+ "-L${ pkgs . openssl . out } /lib"
264
+
265
+ # The ordering of -lssl and -lcrypto below is important. Otherwise,
266
+ # we'll get:
267
+ #
268
+ # (.text+0x2c3d): undefined reference to `COMP_get_type'
269
+ # (.text+0x2de6): undefined reference to `COMP_get_name'
270
+ # (.text+0x4af4): undefined reference to `COMP_CTX_free'
271
+ # (.text+0x4bdd): undefined reference to `COMP_CTX_get_method'
272
+ "-optl-Wl,-lssl"
273
+ "-optl-Wl,-lcrypto"
258
274
] ;
259
275
in {
260
276
packages . cardano-chain-gen . ghcOptions = ghcOptions ;
You can’t perform that action at this time.
0 commit comments