Browse Source

build: suppress conditional dependencies if there are unconditional dependencies on the same symbol

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 37678
Felix Fietkau 12 years ago
parent
commit
0249f7510c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scripts/metadata.pl

+ 1 - 0
scripts/metadata.pl

@@ -454,6 +454,7 @@ sub mconf_depends {
 
 		next if $condition eq $depend;
 		next if $seen->{"$parent_condition:$depend"};
+		next if $seen->{":$depend"};
 		$seen->{"$parent_condition:$depend"} = 1;
 		if ($depend =~ /^(.+):(.+)$/) {
 			if ($1 ne "PACKAGE_$pkgname") {