Build a dylib with jemalloc

can i build a lib as crate-type=dylib and use jemalloc by cargo build --lib -C target-feature=+jemalloc.