Skip to content

Commit 48e7311

Browse files
committed
Fix for double-conversion when using pkgsStatic
1 parent 4d7b228 commit 48e7311

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/modules.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[{
2+
package-keys = ["HsOpenSSL" "libsodium" "double-conversion"];
23
# See https://github.com/haskell-cryptography/HsOpenSSL/issues/95
34
packages.HsOpenSSL.ghcOptions = ["-optc=-Wno-incompatible-pointer-types"];
45
}
@@ -7,4 +8,15 @@
78
packages.libsodium.configureFlags = [ "--c2hs-option=--cppopts=-D_Null_unspecified=" ];
89
packages.libsodium.components.library.hardeningDisable = ["fortify"];
910
})
11+
12+
({pkgs, lib, ...}: lib.mkIf pkgs.stdenv.hostPlatform.isStatic {
13+
packages.double-conversion.ghcOptions = [
14+
# stop putting U __gxx_personality_v0 into the library!
15+
"-optcxx-fno-rtti"
16+
"-optcxx-fno-exceptions"
17+
# stop putting U __cxa_guard_release into the library!
18+
"-optcxx-std=gnu++98"
19+
"-optcxx-fno-threadsafe-statics"
20+
];
21+
})
1022
]

0 commit comments

Comments
 (0)