Unbundle sqlite3 and link it instead

To run the cross compiled binary on Debian, do
 patchelf --set-interpreter /lib/ld-linux-armhf.so.3 raspi-oled
This commit is contained in:
FliegendeWurst 2021-10-09 12:06:37 +02:00
parent f87061c5e3
commit 68fb4c13ba
3 changed files with 3 additions and 2 deletions

1
Cargo.lock generated
View File

@ -240,7 +240,6 @@ version = "0.22.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "290b64917f8b0cb885d9de0f9959fe1f775d7fa12f1da2db9001c1c8ab60f89d"
dependencies = [
"cc",
"pkg-config",
"vcpkg",
]

View File

@ -15,7 +15,7 @@ ssd1306 = "0.6.0"
libc = "0.2.98"
gpio-cdev = "0.4"
dht-hal = "0.0.1"
rusqlite = { version = "0.25.3", features = ["bundled"] }
rusqlite = "0.25.3"
[profile.release]
codegen-units = 1

View File

@ -2,6 +2,8 @@ with (import <nixpkgs> {});
mkShell {
nativeBuildInputs = [
pkgsCross.muslpi.stdenv.cc
pkgsCross.muslpi.sqlite
];
CARGO_TARGET_ARM_UNKNOWN_LINUX_MUSLEABIHF_LINKER = "${pkgsCross.muslpi.stdenv.cc}/bin/armv6l-unknown-linux-musleabihf-ld";
#TARGET_CC = "${pkgsCross.muslpi.stdenv.cc}/bin/armv6l-unknown-linux-musleabihf-cc";
}