diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk index 986a18d7abac..89d1eb769ed9 100644 --- a/debian/rules.d/2-binary-arch.mk +++ b/debian/rules.d/2-binary-arch.mk @@ -485,11 +485,13 @@ endif # Strip .so files (e.g., rust/libmacros.so) to reduce size even more find $(hdrdir) -name libmacros.so -exec strip -s {} \; +ifeq ($(do_lib_rust),true) # Generate Rust lib files install -d -m755 $(rustdir) mv $(hdrdir)/rust $(rustdir) # Generate symlink for Rust lib directory in headers $(SHELL) $(DROOT)/scripts/link-lib-rust "$(hdrdir)" "$(indeppkg)" "$*" +endif ifneq ($(do_full_build),false) # Clean out this flavours build directory.