diff --git a/debian/rules b/debian/rules index e0a33a9a..1d3bfb7f 100644 --- a/debian/rules +++ b/debian/rules @@ -44,3 +44,10 @@ override_dh_auto_install: override_dh_strip: dh_strip --dbg-package=$(APP_NAME)-dbg + # MT#7431 those binaries aren't automatically stripped + test -r $(CURDIR)/debian/ngcp-sems-libsems1-dev/usr/include/sems/compat/getarch && \ + strip --remove-section=.comment --remove-section=.note --strip-unneeded \ + $(CURDIR)/debian/ngcp-sems-libsems1-dev/usr/include/sems/compat/getarch + test -r $(CURDIR)/debian/ngcp-sems-libsems1-dev/usr/include/sems/compat/getos && \ + strip --remove-section=.comment --remove-section=.note --strip-unneeded \ + $(CURDIR)/debian/ngcp-sems-libsems1-dev/usr/include/sems/compat/getos