- # Don't strip VDR binaries, because they use a weird plugin system
- # which does not work when unneeded symbols get stripped from
- # /usr/sbin/vdr.
- $(DIR_SRC)/src/stripper $(ROOT) \
- --exclude=/usr/src --exclude=$(TOOLS_DIR) \
- --exclude=/usr/sbin/vdr --exclude=/usr/lib/vdr
+ifeq "$(TOOLCHAIN)" "1"
+ # Strip everything in the toolchain
+ $(DIR_SRC)/src/stripper $(TOOLS_DIR) \
+ --strip="$(TOOLS_DIR)/$(CROSSTARGET)/bin/strip" \
+ --ignore-errors \
+ --exclude=$(TOOLS_DIR)/$(CROSSTARGET)
+endif