diff options
author | Joey Hess <joey@kitenet.net> | 2011-02-08 15:32:22 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-02-08 15:32:22 -0400 |
commit | c51b87a19648c4527a0c6612dd8f1bfbceda812d (patch) | |
tree | 463998575cc40f3a57c172e9b3edca431a1bc443 /dh_strip | |
parent | 7bc99d44cfc0275e1b44b390bed1362c457da9ab (diff) |
refactor cross command generation
Diffstat (limited to 'dh_strip')
-rwxr-xr-x | dh_strip | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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 { |