From 9ebe5130d5f778f335c534a0fd3987ce4d9794b0 Mon Sep 17 00:00:00 2001 From: Gaute Hope Date: Tue, 3 Oct 2023 09:49:21 +0200 Subject: [PATCH] link: add libstdc++ --- Cargo.toml | 1 + src/lib.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index fb2a921..fe00de1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,7 @@ name = "make_bitmap" path = "src/devel/make_bitmap.rs" [dependencies] +link-cplusplus = { version = "1.0", features = ["libstdc++"] } geos = { version = "8" } lazy_static = "1.4" numpy = { version = "0.19" } diff --git a/src/lib.rs b/src/lib.rs index 3d8f7e6..7016a04 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -62,6 +62,10 @@ extern crate test; #[macro_use] extern crate lazy_static; +// geos-sys needs libc++, probably libstdc++. On Windows Conda builds this hopefully adds the +// correct flags to the linker. +extern crate link_cplusplus; + use numpy::{PyArray, PyReadonlyArrayDyn}; use pyo3::prelude::*; use std::io;