mmstick / cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml
615 stars 50 forks source link

No stripping and debug symbols remain #191

Closed wouterdebie closed 3 years ago

wouterdebie commented 3 years ago

Hi!

First of all, thank you so much for this project!

I'm building some .deb packages, but for some reason I end up a binary that still has all the debug symbols and isn't stripped. I can't seem to figure out why, but I must be doing something wrong.

My config.toml contains:

[profile.release]
panic = "abort"
debug = false
lto = true

and I build with cargo deb --target=x86_64-unknown-linux-musl. The binary that ends up in the .deb is:

ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=98507b58a4417393dfd24985b35a27b094f77cbf, with debug_info, not stripped

Any idea what I'm doing wrong?

Thank you so much!

wouterdebie commented 3 years ago

Sorry, found it..