From a4664178e1e455907c0ae2c9caf089ee6b8d0cc2 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 20 Aug 2000 23:30:30 +0000 Subject: r366: * dh_strip: now knows about the DEB_BUILD_OPTIONS=nostrip thing. --- dh_strip | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dh_strip') diff --git a/dh_strip b/dh_strip index b39d4655..b1501920 100755 --- 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: -- cgit v1.2.3