Skip to content

Commit

Permalink
Explicitly set CFLAGS=-fPIC via make args. Fixes #3.
Browse files Browse the repository at this point in the history
  • Loading branch information
onelson committed Jun 22, 2019
1 parent 5853a53 commit 8074b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fn run_autotools(out_dir: &Path) -> Result<Artifacts, ()> {
.out_dir(&out)
.disable("maintainer-mode", None)
.with("oniguruma", Some("builtin"))
.make_args(vec!["LDFLAGS=-all-static".into()])
.make_args(vec!["LDFLAGS=-all-static".into(), "CFLAGS=-fPIC".into()])
.build();
})
};
Expand Down

0 comments on commit 8074b33

Please sign in to comment.