wyoming-whisper-rs/sys
Jocelyn Stericker 0a8a791fad Use position independent code (-fPIC)
This allows whipser-rs-sys to work when building a cdylib on x86 Linux
in certain conditions.

Without this change, linking can fail with:

```
  = note: /usr/bin/ld: /.../target/debug/deps/libwhisper_rs_sys-d9be91f496c91a32.rlib(whisper.cpp.o): warning: relocation against `_ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE@@GLIBCXX_3.4.21' in read-only section `.text.unlikely'
          /usr/bin/ld: /.../target/debug/deps/libwhisper_rs_sys-d9be91f496c91a32.rlib(whisper.cpp.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
          /usr/bin/ld: final link failed: bad value
          collect2: error: ld returned 1 exit status
```

Note that this is one solution. I believe another would be to use the [cmake crate](https://github.com/rust-lang/cmake-rs), which builds with `-fPIC` by default on Linux.
2023-05-28 11:04:25 -04:00
..
src update whisper.cpp to v1.4.2 2023-05-14 14:27:37 -06:00
whisper.cpp@a5defbc1b9 update whisper.cpp to v1.4.2 2023-05-14 14:27:37 -06:00
build.rs Use position independent code (-fPIC) 2023-05-28 11:04:25 -04:00
Cargo.toml include ggml-opencl in the crate 2023-05-19 22:14:23 +00:00
wrapper.h Initial commit 2022-10-09 20:17:31 -06:00