-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* libsql-ffi: Enable PIC for sqlite3mc build I am seeing the following build error when building the libsql-ffi crate on Linux/x86-64: ``` /usr/bin/ld: /tmp/rustcYVhHYo/liblibsql_ffi-20adf4ca11d8e922.rlib(sqlite3mc.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC ``` Let's turn on PIC for sqlite3mc to fix the problem. * libsql-ffi: Fix sqlite3mc build under `cross` We need to use the C compiler configured by `cross` with sqlite3mc; otherwise we end up building with the host compiler, resulting in errors like this: ``` = note: /usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/bin/ld: /tmp/rustcJ70WRo/liblibsql_ffi-5d7e6e8037dbda37.rlib(sqlite3mc.c.o): Relocations in generic ELF (EM: 62) ``` * libsql-ffi: Rewrite build_libsqlite3mc.sh in Rust The bash shell script is turning out to be painful to run on Windows so let's just rewrite the logic in Rust and place it in `build.rs`.
- Loading branch information
Showing
2 changed files
with
85 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.