diff --git a/make/common/Program.gmk b/make/common/Program.gmk index 9fdde6d9745446d2eb3c55de51385b098d84a579..38adb13b052c153572487b2e32c789027f839421 100644 --- a/make/common/Program.gmk +++ b/make/common/Program.gmk @@ -55,10 +55,13 @@ program_default_rule: all program: $(ACTUAL_PROGRAM) -# reuse the mapfiles in the launcher's directory, the same should -# be applicable to the tool launchers as well. -FILES_m = $(BUILDDIR)/java/main/java/mapfile-$(ARCH) -include $(BUILDDIR)/common/Mapfile-vers.gmk +# Work-around for missing processor specific mapfiles +ifndef CROSS_COMPILE_ARCH + # reuse the mapfiles in the launcher's directory, the same should + # be applicable to the tool launchers as well. + FILES_m = $(BUILDDIR)/java/main/java/mapfile-$(ARCH) + include $(BUILDDIR)/common/Mapfile-vers.gmk +endif include $(JDK_TOPDIR)/make/common/Rules.gmk