Skip to content

Commit 74eaf3f

Browse files
author
kavyasree
committed
Added patches to fix libflux.so file linking issue
1 parent 1617ec2 commit 74eaf3f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

SPECS/flux/flux.spec

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,19 @@ programs using Influx data language.
7777
pushd libflux
7878
tar -xf %{SOURCE1}
7979
install -D %{SOURCE2} .cargo/config
80+
81+
patch -p2 <<EOF
82+
--- a/libflux/flux/build.rs
83+
+++ b/libflux/flux/build.rs
84+
@@ -82,5 +82,7 @@ fn main() -> Result<()> {
85+
let path = dir.join("stdlib.data");
86+
serialize(Environment::from(imports), fb::build_env, &path)?;
87+
88+
+ println!("cargo:rustc-cdylib-link-arg=-Wl,-soname,libflux.so.%{version}");
89+
+
90+
Ok(())
91+
}
92+
8093
popd
8194

8295
%build

0 commit comments

Comments
 (0)