From 1b9033d6ca90e766fc344a78ee3739c81b3e5244 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Tue, 3 Jul 2018 14:23:44 -0400 Subject: Update BoringSSL https://boringssl.googlesource.com/boringssl/+/03de6813d8992a649092b4874ef0ebc022e2f58a means BoringSSL now by default includes relocations that don't play well with shared libraries. Make `cabal build --enable-shared` work again by building all BoringSSL code as PIC. --- Setup.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'Setup.hs') diff --git a/Setup.hs b/Setup.hs index 49b78d3..529524a 100644 --- a/Setup.hs +++ b/Setup.hs @@ -49,6 +49,7 @@ boringsslBuild flags = do [ "cmake" , "-GNinja" , "-DCMAKE_BUILD_TYPE=Release" + , "-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE" , "-B" ++ buildDir , "-H" ++ boringsslDir "src" ] -- cgit v1.2.3