Fix rav1e build on Linux x64, and eliminate pseudo-dependency on cargo-c
diff --git a/CHANGELOG.md b/CHANGELOG.md index b82aaa7..e3e2964 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Fix rav1e build on Linux x64, and eliminate pseudo-dependency on cargo-c ## [0.4.5] - 2019-10-30 ### Changed
diff --git a/CMakeLists.txt b/CMakeLists.txt index 32dc34f..52bed13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -162,9 +162,11 @@ endif() endif() + # Unfortunately, rav1e requires a few more libraries if(WIN32) - # Unfortunately, rav1e requires a few more libraries set(AVIF_CODEC_LIBARIES ${AVIF_CODEC_LIBARIES} ws2_32.lib userenv.lib) + elseif(UNIX AND NOT APPLE) + set(AVIF_CODEC_LIBARIES ${AVIF_CODEC_LIBARIES} dl) # for backtrace endif() endif()
diff --git a/ext/rav1e.cmd b/ext/rav1e.cmd index 14ceddc..1ca84db 100644 --- a/ext/rav1e.cmd +++ b/ext/rav1e.cmd
@@ -17,6 +17,5 @@ cargo install cbindgen cbindgen -c cbindgen.toml -l C -o target/release/rav1e.h --crate rav1e . -cargo install cargo-c -cargo cbuild --release +cargo build --release --features capi cd ..