New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
samba4: Files installed unstripped #16528
Comments
Hrm, was using binutils 2.35.1 with |
OK, so the problem still exists with binutils 2.32, so re-opening. Everything in my build_dir/target*/root-ramips directory is stripped except for samba4 and libperl.so. Being that I've built with |
Here's my ugly fix for you: diff --git a/net/samba4/Makefile b/net/samba4/Makefile
index f3108fc58..af2c9296c 100644
--- a/net/samba4/Makefile
+++ b/net/samba4/Makefile
@@ -130,7 +130,7 @@ endef
TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
# dont mess with sambas private rpath!
-RSTRIP:=:
+RSTRIP:=do_strip() { find $$$$* -type f -executable | xargs -d '\n' $(TARGET_CROSS)strip --strip-unneeded || true; }; do_strip
CONFIGURE_VARS += \
CPP="$(TARGET_CROSS)cpp" \ I think I should really clean up the whole stripping mechanism and present it upstream. You can't just run around and snip out crap you don't like at random. I argued last year about the --strip-all being wrong, but now I see why that isn't breaking things -- if the rstrip.sh script detects it's relocatable, it treats it like a kernel module -- ugly. |
Maintainer: @Andy2244 (Andy Walsh andy.walsh44+github@gmail.com)
Environment: mipsel_24kc_musl (mt7620a) v21.02
Samba's executables are making it to squashfs unstripped. I'm running with -g3, so it was more noticeable:
The text was updated successfully, but these errors were encountered: