shark-adlc-cross-compile.patch 1.1 KB

1234567891011121314151617181920212223
  1. Execute adlc via Qemu.
  2. --- w-openjdk-6.orig/openjdk-6/hotspot/make/linux/makefiles/adlc.make 2011-02-28 17:03:13.000000000 +0100
  3. +++ w-openjdk-6/openjdk-6/hotspot/make/linux/makefiles/adlc.make 2011-08-17 13:05:55.317470977 +0200
  4. @@ -103,7 +103,7 @@
  5. $(EXEC) : $(OBJECTS)
  6. @echo Making adlc
  7. - $(QUIETLY) $(LINK_NOPROF.CC) -o $(EXEC) $(OBJECTS)
  8. + $(QUIETLY) $(LINK_NOPROF.CC) -static -o $(EXEC) $(OBJECTS)
  9. # Random dependencies:
  10. $(OBJECTS): opcodes.hpp classes.hpp adlc.hpp adlcVMDeps.hpp adlparse.hpp archDesc.hpp arena.hpp dict2.hpp filebuff.hpp forms.hpp formsopt.hpp formssel.hpp
  11. @@ -170,7 +170,7 @@
  12. #
  13. refresh_adfiles: $(EXEC) $(SOURCE.AD) $(ADLC_UPDATER)
  14. @rm -rf $(TEMPDIR); mkdir $(TEMPDIR)
  15. - $(QUIETLY) $(EXEC) $(ADLCFLAGS) $(SOURCE.AD) \
  16. + $(QEMU) $(EXEC) $(ADLCFLAGS) $(SOURCE.AD) \
  17. -c$(TEMPDIR)/ad_$(Platform_arch_model).cpp -h$(TEMPDIR)/ad_$(Platform_arch_model).hpp -a$(TEMPDIR)/dfa_$(Platform_arch_model).cpp -v$(TEMPDIR)/adGlobals_$(Platform_arch_model).hpp \
  18. || { rm -rf $(TEMPDIR); exit 1; }
  19. $(QUIETLY) ./$(ADLC_UPDATER) ad_$(Platform_arch_model).cpp $(TEMPDIR) $(OUTDIR)