]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_strip
r386: * dh_makeshlibs: Also scan files named "*.so*", not just "*.so.*",
[debhelper.git] / dh_strip
index b39d46554f01fa3b6eecdd3da41c31d553aa58c8..b150192035c93dcf84061bcdb881a7c3ec80627b 100755 (executable)
--- a/dh_strip
+++ b/dh_strip
@@ -6,6 +6,11 @@ use File::Find;
 use Debian::Debhelper::Dh_Lib;
 init();
 
+# This variable can be used to turn off stripping (see Policy).
+if (defined $ENV{DEB_BUILD_OPTIONS} && $ENV{DEB_BUILD_OPTIONS} =~ /nostrip/) {
+       exit;
+}
+
 # Check if a file is an elf binary, shared library, or static library,
 # for use by File::Find. It'll fill the following 3 arrays with anything
 # it finds: