Closed gaoxinge closed 2 years ago
Directly build on win gnu target will raise error:
error: could not find native static library `jemalloc`, perhaps an -L flag is missing?
libjemalloc.a
$build_dir/lib
https://github.com/tikv/jemallocator/blob/52de4257fab3e770f73d5174c12a095b49572fba/jemalloc-sys/build.rs#L306
jemalloc.lib
So they are mismatching.
I update the jemalloc-sys/build.rs to generate libjemalloc.a in $build_dir/lib, base on the issue.
jemalloc-sys/build.rs
problem
Directly build on win gnu target will raise error:
error: could not find native static library `jemalloc`, perhaps an -L flag is missing?
reason
libjemalloc.a
in$build_dir/lib
:https://github.com/tikv/jemallocator/blob/52de4257fab3e770f73d5174c12a095b49572fba/jemalloc-sys/build.rs#L306
jemalloc.lib
in$build_dir/lib
So they are mismatching.
fix
I update the
jemalloc-sys/build.rs
to generatelibjemalloc.a
in$build_dir/lib
, base on the issue.