From 97ba06c9efe2f6f9f1a8c6f24a6fa92e1a8f626d Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 9 Aug 2022 17:52:37 +0200 Subject: [PATCH] Compile operator with `-fPIC` --- examples/c-dataflow/run.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/c-dataflow/run.rs b/examples/c-dataflow/run.rs index cc2b0beb..207ef327 100644 --- a/examples/c-dataflow/run.rs +++ b/examples/c-dataflow/run.rs @@ -72,6 +72,7 @@ async fn build_c_operator(root: &Path) -> eyre::Result<()> { let mut compile = tokio::process::Command::new("clang"); compile.arg("-c").arg("operator.c"); compile.arg("-o").arg("build/operator.o"); + compile.arg("-fPIC"); if !compile.status().await?.success() { bail!("failed to compile c operator"); };