summaryrefslogtreecommitdiff
path: root/solenv/gbuild
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-11-03 07:50:57 +0100
committerDavid Tardon <dtardon@redhat.com>2013-11-03 08:02:14 +0100
commit16685f24f14c29f5aad2dc30cb73ab522dcb3cee (patch)
treeac6e6ad4e554ec4fa9784e8ccfa04ddf367c0689 /solenv/gbuild
parenta5f90dcdb829b78719eba79ad23907a4bc61e82f (diff)
duplicates in the module list break build
They might occur in extensions when crosscompiling, because both harfbuzz and lcms2 are listed twice. Change-Id: I6d6eff19043d33160b825f47988e46798da7857a
Diffstat (limited to 'solenv/gbuild')
-rw-r--r--solenv/gbuild/Module.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/solenv/gbuild/Module.mk b/solenv/gbuild/Module.mk
index 98930ed1ccd4..8105c1fb3f1b 100644
--- a/solenv/gbuild/Module.mk
+++ b/solenv/gbuild/Module.mk
@@ -280,7 +280,8 @@ $(foreach target,$(2),$(call gb_Module_add_subsequentcheck_target,$(1),$(target)
endef
define gb_Module_add_moduledirs
-$(foreach target,$(2),$(call gb_Module_add_moduledir,$(1),$(target)))
+$(foreach target,$(sort $(2)),$(call gb_Module_add_moduledir,$(1),$(target)))
+
endef
define gb_Module_make_global_targets