aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-08-30 19:29:58 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-08-30 19:29:58 +0200
commit13264ea7f447af1acedc8fd82268a4aba7a69ff9 (patch)
treebdf19bb1de049eefd1a4580398ab797f0b2fcf08 /debian/rules
parent15909676eb01bc29ff0f78eda2df8a74fc38eb57 (diff)
downloadnx-libs-13264ea7f447af1acedc8fd82268a4aba7a69ff9.tar.gz
nx-libs-13264ea7f447af1acedc8fd82268a4aba7a69ff9.tar.bz2
nx-libs-13264ea7f447af1acedc8fd82268a4aba7a69ff9.zip
debian/rules: Strip static libraries before installing them into the lib*.dev packages.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules5
1 files changed, 4 insertions, 1 deletions
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/