]> err.no Git - dpkg/commitdiff
Handle multilib subdirs.
authorBen Collins <bcollins@debian.org>
Mon, 9 Jun 2003 21:38:34 +0000 (21:38 +0000)
committerBen Collins <bcollins@debian.org>
Mon, 9 Jun 2003 21:38:34 +0000 (21:38 +0000)
scripts/dpkg-architecture.pl

index ecf559af50c160c72597e46776022b74f0499ae0..4f48e7a81aeecb33cc009d7929d6cf48d0620d1c 100755 (executable)
@@ -134,7 +134,7 @@ if ($?>>8) {
     &warn("Couldn't determine gcc system type, falling back to default (native compilation)");
     $gcc = '';
 } else {
-    $gcc =~ s!^.*gcc-lib/([^/]*)/(?:egcs-)?\d+(?:[.\da-z]*)/libgcc.*$!$1!s;
+    $gcc =~ s!^.*gcc-lib/([^/]*)/(?:egcs-)?\d+(?:[.\da-z]*)/(|.*/)libgcc.*$!$1!s;
     if (defined $1 and $1 ne '') {
        $gcc = $1;
     } else {