aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-08-04 12:17:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-08-04 12:17:22 +0000
commit0249f7510c658b74f81cb54fdc287f32956ec3c5 (patch)
tree48e72e0439334ef3c83e1a465559ab6c6d432fcb
parent0d9ecfa564aec2d8d85b7e3703d49064674564df (diff)
downloadupstream-0249f7510c658b74f81cb54fdc287f32956ec3c5.tar.gz
upstream-0249f7510c658b74f81cb54fdc287f32956ec3c5.tar.bz2
upstream-0249f7510c658b74f81cb54fdc287f32956ec3c5.zip
build: suppress conditional dependencies if there are unconditional dependencies on the same symbol
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37678
-rwxr-xr-xscripts/metadata.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 5625b8b5be..28ddefcd9c 100755
--- a/scripts/metadata.pl
+++ b/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") {