From 13264ea7f447af1acedc8fd82268a4aba7a69ff9 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 30 Aug 2017 19:29:58 +0200 Subject: debian/rules: Strip static libraries before installing them into the lib*.dev packages. --- debian/rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/rules b/debian/rules index 925c98f08..61ff2d934 100755 --- a/debian/rules +++ b/debian/rules @@ -23,10 +23,13 @@ override_dh_auto_clean: override_dh_install: - # remove static libs + # strip static libs and remove .la files rm debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libXcomp.la + strip --strip-debug --remove-section=.comment --remove-section=.note debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libXcomp.a rm debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libXcompshad.la + strip --strip-debug --remove-section=.comment --remove-section=.note debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libXcompshad.a rm debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libNX_X11.la + strip --strip-debug --remove-section=.comment --remove-section=.note debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libNX_X11.a # remove extras, GL, and other unneeded headers rm -R debian/tmp/usr/include/$(DEB_BUILD_MULTIARCH)/GL/ -- cgit v1.2.3