cross-compile.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. disable wrong pathes to /usr, fix cross-compile
  2. --- w-openjdk-6-1.orig/openjdk-6/jdk/make/sun/awt/Makefile 2011-02-28 17:06:11.000000000 +0100
  3. +++ w-openjdk-6-1/openjdk-6/jdk/make/sun/awt/Makefile 2011-08-07 17:00:37.676468717 +0200
  4. @@ -509,10 +509,7 @@
  5. #
  6. ifeq ($(PLATFORM), linux)
  7. -CPPFLAGS += -I$(MOTIF_DIR)/include \
  8. - -I$(OPENWIN_HOME)/include \
  9. - -I$(OPENWIN_HOME)/include/X11/extensions \
  10. - -I$(PLATFORM_SRC)/native/$(PKGDIR)/font
  11. +CPPFLAGS += -I$(PLATFORM_SRC)/native/$(PKGDIR)/font
  12. endif
  13. CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/debug \
  14. -I$(SHARE_SRC)/native/$(PKGDIR)/../font \
  15. @@ -535,10 +532,6 @@
  16. -I$(PLATFORM_SRC)/native/$(PKGDIR) \
  17. $(EVENT_MODEL)
  18. -ifeq ($(PLATFORM), linux)
  19. -LDFLAGS += -L$(MOTIF_LIB) -L$(OPENWIN_LIB)
  20. -endif
  21. -
  22. LDFLAGS += -L$(LIBDIR)/$(LIBARCH)/$(TSOBJDIR) \
  23. $(AWT_RUNPATH)
  24. --- w-openjdk-6-1.orig/openjdk-6/jdk/make/sun/xawt/Makefile 2011-02-28 17:06:12.000000000 +0100
  25. +++ w-openjdk-6-1/openjdk-6/jdk/make/sun/xawt/Makefile 2011-08-07 18:31:08.635355054 +0200
  26. @@ -96,6 +96,10 @@
  27. CPPFLAGS += -I$(CUPS_HEADERS_PATH)
  28. +ifeq ($(PLATFORM), linux)
  29. +CPPFLAGS += -I@ADK_TARGETDIR@/usr/include/X11/extensions
  30. +endif
  31. +
  32. CPPFLAGS += -DXAWT -DXAWT_HACK \
  33. -I$(TEMPDIR)/../../sun.awt/awt/CClassHeaders \
  34. -I$(PLATFORM_SRC)/native/sun/awt \
  35. @@ -122,14 +126,6 @@
  36. -I$(SHARE_SRC)/native/sun/awt \
  37. -I$(PLATFORM_SRC)/native/sun/awt
  38. -ifeq ($(PLATFORM), linux)
  39. -# Allows for builds on Debian GNU Linux, X11 is in a different place
  40. - CPPFLAGS += -I/usr/X11R6/include/X11/extensions \
  41. - -I/usr/include/X11/extensions \
  42. - -I$(MOTIF_DIR)/include \
  43. - -I$(OPENWIN_HOME)/include
  44. -endif
  45. -
  46. ifeq ($(PLATFORM), solaris)
  47. CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions -I$(MOTIF_DIR)/include
  48. endif