Fix ZSTD linking in debian/rules with explicit linker flags
All checks were successful
Build deb-bootupd Artifacts / build (push) Successful in 8m45s
All checks were successful
Build deb-bootupd Artifacts / build (push) Successful in 8m45s
- Add explicit -C link-arg=-lzstd to RUSTFLAGS in debian/rules - This ensures ZSTD library is linked during Debian package build - Build script approach didn't work because dpkg-buildpackage bypasses Cargo - Local Debian package build now succeeds with ZSTD linking - Should resolve the 63+ failed CI builds
This commit is contained in:
parent
f30ced3551
commit
5e263d2e83
1 changed files with 2 additions and 1 deletions
3
debian/rules
vendored
3
debian/rules
vendored
|
|
@ -9,7 +9,8 @@ override_dh_auto_configure:
|
||||||
|
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
rustup target add x86_64-unknown-linux-gnu
|
rustup target add x86_64-unknown-linux-gnu
|
||||||
cargo build --release --target x86_64-unknown-linux-gnu
|
# Force ZSTD linking since OpenSSL was compiled with ZSTD support
|
||||||
|
RUSTFLAGS="-C target-cpu=native -C link-arg=-lzstd" cargo build --release --target x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
mkdir -p debian/deb-bootupd/usr/libexec
|
mkdir -p debian/deb-bootupd/usr/libexec
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue