summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcheck-multiarch-files9
1 files changed, 4 insertions, 5 deletions
diff --git a/check-multiarch-files b/check-multiarch-files
index 8092426..33f64f7 100755
--- a/check-multiarch-files
+++ b/check-multiarch-files
@@ -29,13 +29,12 @@ while (<STDIN>) {
$multiarch_type = "binary";
# check for *-config script files
- if (/.+-config/ && $file_magic =~ /shell script/) {
+ if (/.+[-_]config/ && $file_magic =~ /shell script/) {
my $options;
foreach (cat_($_)) {
- $options .= " --cflags" if /\[--cflags\]/;
- $options .= " --libs" if /\[--libs\]/;
- $options .= " --ldflags" if /\[--ldflags\]/;
- $options .= " --cppflags" if /\[--cppflags\]/;
+ foreach my $opt (qw(cflags libs ldflags cppflags libdir)) {
+ $options .= " --$opt" if /(\[--$opt\]|--$opt\s+[\#\[])/;
+ }
}
# run the script to find out any libdir dependent flags
if ($options) {