From 0249f7510c658b74f81cb54fdc287f32956ec3c5 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Sun, 4 Aug 2013 12:17:22 +0000
Subject: [PATCH] build: suppress conditional dependencies if there are
 unconditional dependencies on the same symbol

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37678
---
 scripts/metadata.pl | 1 +
 1 file changed, 1 insertion(+)

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") {
-- 
GitLab