summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2006-01-28 04:29:10 +0000
committerGuillem Jover <guillem@debian.org>2006-01-28 04:29:10 +0000
commit6e2356c0e90a7ae4e9ae91212133ffb0f46ae26f (patch)
tree066321dc2ba983eddc3a46efb0decfaa78960e59 /scripts
parente9851ad3e0562fbe53a535d32bc8c1d0a32c929e (diff)
downloaddpkg-6e2356c0e90a7ae4e9ae91212133ffb0f46ae26f.tar.gz
Make dpkg-architecture not print the warning about a missmatch between
gcc target machine type and GNU target system type if the actions are '-e' or '-i'.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dpkg-architecture.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dpkg-architecture.pl b/scripts/dpkg-architecture.pl
index 138047516..82abb4c61 100755
--- a/scripts/dpkg-architecture.pl
+++ b/scripts/dpkg-architecture.pl
@@ -200,7 +200,7 @@ $deb_host_gnu_type = $req_host_gnu_type if $req_host_gnu_type ne '';
#$gcc = `\${CC:-gcc} --print-libgcc-file-name`;
#$gcc =~ s!^.*gcc-lib/(.*)/\d+(?:.\d+)*/libgcc.*$!$1!s;
-&warn("Specified GNU system type $deb_host_gnu_type does not match gcc system type $gcc.") if ($gcc ne '') && ($gcc ne $deb_host_gnu_type);
+&warn("Specified GNU system type $deb_host_gnu_type does not match gcc system type $gcc.") if !($req_is_arch or $req_eq_arch) && ($gcc ne '') && ($gcc ne $deb_host_gnu_type);
# Split the Debian and GNU names
($deb_host_arch_os, $deb_host_arch_cpu) = &split_debian($deb_host_arch);