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 c37f1a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ were not initialized.

## Changelog

### (Unreleased)

- Fixes issue where dependent crates can fail to build while linking on some systems ([#3]).

### v0.4.0 (2019-06-09)

- Upgrade to `autotools` 0.2, updating the usages to be compatible with the
Expand Down Expand Up @@ -70,3 +74,4 @@ Initial release.
[oniguruma]: https://github.com/kkos/oniguruma/
[jq-sys]: https://github.com/onelson/jq-sys
[#1]: https://github.com/onelson/jq-src/issues/1
[#3]: https://github.com/onelson/jq-src/issues/3
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 c37f1a9

Please sign in to comment.