diff options
Diffstat (limited to 'mcs/build/executable.make')
-rw-r--r-- | mcs/build/executable.make | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mcs/build/executable.make b/mcs/build/executable.make index 7ac941ca839..5a39dd9501a 100644 --- a/mcs/build/executable.make +++ b/mcs/build/executable.make @@ -42,15 +42,17 @@ executable_CLEAN_FILES += $(build_lib) $(build_lib).so $(build_lib).mdb $(build_ makefrag = $(depsdir)/$(PROFILE)_$(base_prog).makefrag +LIB_REFS_ALL = $(DEFAULT_REFERENCES) $(LIB_REFS) + ifdef TARGET_NET_REFERENCE -# System.*.dll references come from the TARGET_NET_REFERENCE dir, others from the profile dir -LIB_REFS_MONO = $(call _FILTER_OUT,System,$(LIB_REFS)) -LIB_REFS_SYSTEM = $(filter-out $(LIB_REFS_MONO),$(LIB_REFS)) +# System*, mscorlib references come from the TARGET_NET_REFERENCE dir, others from the profile dir +LIB_REFS_MONO = $(call _FILTER_OUT,System,$(call _FILTER_OUT,mscorlib,$(LIB_REFS_ALL))) +LIB_REFS_SYSTEM = $(filter-out $(LIB_REFS_MONO),$(LIB_REFS_ALL)) MCS_REFERENCES = $(patsubst %,-r:$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/%.dll,$(LIB_REFS_SYSTEM)) MCS_REFERENCES += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS_MONO)) else -MCS_REFERENCES = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS)) +MCS_REFERENCES = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS_ALL)) endif ifdef KEYFILE |