remove-libnsl.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --- w-openjdk-6-1.orig/openjdk-6/jdk/make/java/hpi/hpi_common.gmk 2011-02-28 17:06:10.000000000 +0100
  2. +++ w-openjdk-6-1/openjdk-6/jdk/make/java/hpi/hpi_common.gmk 2011-04-10 20:05:01.417672476 +0200
  3. @@ -86,5 +86,5 @@
  4. # Things that must be linked in.
  5. #
  6. ifneq ($(PLATFORM), windows)
  7. -OTHER_LDLIBS += $(LIBSOCKET) -lnsl $(LIBM) -ldl
  8. +OTHER_LDLIBS += $(LIBSOCKET) $(LIBM) -ldl
  9. endif
  10. --- w-openjdk-6-1.orig/openjdk-6/jdk/make/java/java/Makefile 2011-02-28 17:06:10.000000000 +0100
  11. +++ w-openjdk-6-1/openjdk-6/jdk/make/java/java/Makefile 2011-04-10 20:05:20.637673621 +0200
  12. @@ -205,7 +205,7 @@
  13. OTHER_LDLIBS += $(JVMLIB) -libpath:$(OBJDIR)/../../../fdlibm/$(OBJDIRNAME) fdlibm.lib \
  14. -libpath:$(OBJDIR)/../../../verify/$(OBJDIRNAME) verify.lib
  15. else
  16. -OTHER_LDLIBS += $(JVMLIB) -lverify $(LIBSOCKET) -lnsl -ldl \
  17. +OTHER_LDLIBS += $(JVMLIB) -lverify $(LIBSOCKET) -ldl \
  18. -L$(OBJDIR)/../../../fdlibm/$(OBJDIRNAME) -lfdlibm.$(ARCH)
  19. endif
  20. --- w-openjdk-6-1.orig/openjdk-6/jdk/make/java/net/Makefile 2011-02-28 17:06:10.000000000 +0100
  21. +++ w-openjdk-6-1/openjdk-6/jdk/make/java/net/Makefile 2011-04-10 20:05:39.537672169 +0200
  22. @@ -97,7 +97,7 @@
  23. # Will not compile at warning level 3 if warnings are fatal
  24. COMPILER_WARNINGS_FATAL=false
  25. else
  26. - OTHER_LDLIBS = $(LIBSOCKET) -lnsl -ldl $(JVMLIB)
  27. + OTHER_LDLIBS = $(LIBSOCKET) -ldl $(JVMLIB)
  28. endif
  29. ifeq ($(PLATFORM), linux)
  30. OTHER_LDLIBS += -lpthread
  31. --- w-openjdk-6-1.orig/openjdk-6/jdk/make/jpda/transport/socket/Makefile 2011-02-28 17:06:11.000000000 +0100
  32. +++ w-openjdk-6-1/openjdk-6/jdk/make/jpda/transport/socket/Makefile 2011-04-10 20:06:06.037672449 +0200
  33. @@ -42,11 +42,11 @@
  34. endif
  35. ifeq ($(PLATFORM), linux)
  36. - OTHER_LDLIBS += -lnsl $(LIBSOCKET) -lpthread
  37. + OTHER_LDLIBS += $(LIBSOCKET) -lpthread
  38. endif
  39. ifeq ($(PLATFORM), solaris)
  40. - OTHER_LDLIBS += -lnsl $(LIBSOCKET)
  41. + OTHER_LDLIBS += $(LIBSOCKET)
  42. endif
  43. ifeq ($(PLATFORM), windows)
  44. --- w-openjdk-6-1.orig/openjdk-6/jdk/make/java/java_hprof_demo/Makefile 2011-02-28 17:06:10.000000000 +0100
  45. +++ w-openjdk-6-1/openjdk-6/jdk/make/java/java_hprof_demo/Makefile 2011-04-10 20:28:43.287672398 +0200
  46. @@ -83,7 +83,7 @@
  47. ifeq ($(PLATFORM), windows)
  48. OTHER_LDLIBS += wsock32.lib winmm.lib
  49. else
  50. - OTHER_LDLIBS += $(LIBSOCKET) -lnsl -ldl
  51. + OTHER_LDLIBS += $(LIBSOCKET) -ldl
  52. endif
  53. #
  54. --- w-openjdk-6-1.orig/openjdk-6/jdk/make/mkdemo/jvmti/hprof/Makefile 2011-02-28 17:06:11.000000000 +0100
  55. +++ w-openjdk-6-1/openjdk-6/jdk/make/mkdemo/jvmti/hprof/Makefile 2011-04-11 10:23:11.538911604 +0200
  56. @@ -42,7 +42,7 @@
  57. OTHER_LDLIBS += $(LIBSOCKET) -lnsl -ldl
  58. endif
  59. ifeq ($(PLATFORM), linux)
  60. - OTHER_LDLIBS += $(LIBSOCKET) -lnsl -ldl -lpthread
  61. + OTHER_LDLIBS += $(LIBSOCKET) -ldl -lpthread
  62. endif
  63. #