From 8a782fc331d78a07d80a30120c780e10ce32dda5 Mon Sep 17 00:00:00 2001 From: Miles Granger Date: Mon, 10 Apr 2023 09:13:05 +0200 Subject: [PATCH] Try fixing MacOs sigsegv --- blosc2-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/blosc2-sys/build.rs b/blosc2-sys/build.rs index 126d9e9..36e2a6c 100644 --- a/blosc2-sys/build.rs +++ b/blosc2-sys/build.rs @@ -3,6 +3,7 @@ use std::path::PathBuf; fn main() { let lib = cmake::Config::new("c-blosc2") .define("CMAKE_POSITION_INDEPENDENT_CODE", "ON") + .define("CMAKE_C_FLAGS", "-fPIE") .define("BLOSC_INSTALL", "ON") .define("BUILD_TESTS", "OFF") .define("BUILD_EXAMPLES", "OFF")