summaryrefslogtreecommitdiff
path: root/dh_strip
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-02-08 15:32:22 -0400
committerJoey Hess <joey@kitenet.net>2011-02-08 15:32:22 -0400
commitc51b87a19648c4527a0c6612dd8f1bfbceda812d (patch)
tree463998575cc40f3a57c172e9b3edca431a1bc443 /dh_strip
parent7bc99d44cfc0275e1b44b390bed1362c457da9ab (diff)
refactor cross command generation
Diffstat (limited to 'dh_strip')
-rwxr-xr-xdh_strip10
1 files changed, 2 insertions, 8 deletions
diff --git a/dh_strip b/dh_strip
index b4098be6..5cc68834 100755
--- a/dh_strip
+++ b/dh_strip
@@ -86,14 +86,8 @@ if (defined $ENV{DEB_BUILD_OPTIONS} && $ENV{DEB_BUILD_OPTIONS} =~ /nostrip/) {
exit;
}
-my $objcopy = "objcopy";
-my $strip = "strip";
-# cross-compiling?
-if (dpkg_architecture_value("DEB_BUILD_GNU_TYPE")
- ne dpkg_architecture_value("DEB_HOST_GNU_TYPE")) {
- $objcopy=dpkg_architecture_value("DEB_HOST_GNU_TYPE") . "-objcopy";
- $strip=dpkg_architecture_value("DEB_HOST_GNU_TYPE") . "-strip";
-}
+my $objcopy = cross_command("objcopy");
+my $strip = cross_command("strip");
# I could just use `file $_[0]`, but this is safer
sub get_file_type {