multiple strip issue and qt with pandisplay

This commit is contained in:
刘可亮 2025-11-12 10:45:46 +08:00
parent 5975e8c040
commit 97fb26097e
2 changed files with 14 additions and 2 deletions

View File

@ -576,8 +576,20 @@ endif
ifneq ($(BR2_ENABLE_DEBUG):$(BR2_STRIP_strip),y:)
$(Q)rm -rf $(TARGET_DIR)/lib/debug $(TARGET_DIR)/usr/lib/debug
endif
$(STRIP_FIND_CMD) | xargs -0 $(STRIPCMD) 2>/dev/null || true
$(STRIP_FIND_SPECIAL_LIBS_CMD) | xargs -0 -r $(STRIPCMD) $(STRIP_STRIP_DEBUG) 2>/dev/null || true
$(STRIP_FIND_CMD) | xargs -0 -I {} sh -c ' \
if file {} | grep -q "not stripped"; then \
@echo "Stripping {}"; \
$(STRIPCMD) {}; \
else \
@echo "Skipping {} (already stripped)"; \
fi' 2>/dev/null || true
$(STRIP_FIND_SPECIAL_LIBS_CMD) | xargs -0 -I {} sh -c ' \
if file {} | grep -q "not stripped"; then \
@echo "Stripping special library {}"; \
$(STRIPCMD) $(STRIP_STRIP_DEBUG) {}; \
else \
@echo "Skipping special libary {} (already stripped)"; \
fi' 2>/dev/null || true
$(Q)test -f $(TARGET_DIR)/etc/ld.so.conf && \
{ echo "ERROR: we shouldn't have a /etc/ld.so.conf file"; exit 1; } || true