readline52-012.patch 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. READLINE PATCH REPORT
  2. =====================
  3. Readline-Release: 5.2
  4. Patch-ID: readline52-012
  5. Bug-Reported-by: Chet Ramey <chet.ramey@case.edu>
  6. Bug-Reference-ID:
  7. Bug-Reference-URL:
  8. Bug-Description:
  9. This updates the options required to create shared libraries on several
  10. systems, including Mac OS X 10.5 (darwin9.x), FreeBSD, NetBSD, OpenBSD,
  11. AIX, and HP/UX.
  12. Patch:
  13. *** ../readline-5.2-patched/support/shobj-conf 2006-04-11 09:15:43.000000000 -0400
  14. --- ./support/shobj-conf 2007-12-06 23:46:41.000000000 -0500
  15. ***************
  16. *** 11,15 ****
  17. # chet@po.cwru.edu
  18. ! # Copyright (C) 1996-2002 Free Software Foundation, Inc.
  19. #
  20. # This program is free software; you can redistribute it and/or modify
  21. --- 11,15 ----
  22. # chet@po.cwru.edu
  23. ! # Copyright (C) 1996-2007 Free Software Foundation, Inc.
  24. #
  25. # This program is free software; you can redistribute it and/or modify
  26. ***************
  27. *** 115,119 ****
  28. ;;
  29. ! freebsd2* | netbsd*)
  30. SHOBJ_CFLAGS=-fpic
  31. SHOBJ_LD=ld
  32. --- 115,119 ----
  33. ;;
  34. ! freebsd2*)
  35. SHOBJ_CFLAGS=-fpic
  36. SHOBJ_LD=ld
  37. ***************
  38. *** 126,130 ****
  39. # FreeBSD-3.x ELF
  40. freebsd[3-9]*|freebsdelf[3-9]*|freebsdaout[3-9]*|dragonfly*)
  41. ! SHOBJ_CFLAGS=-fpic
  42. SHOBJ_LD='${CC}'
  43. --- 126,130 ----
  44. # FreeBSD-3.x ELF
  45. freebsd[3-9]*|freebsdelf[3-9]*|freebsdaout[3-9]*|dragonfly*)
  46. ! SHOBJ_CFLAGS=-fPIC
  47. SHOBJ_LD='${CC}'
  48. ***************
  49. *** 143,147 ****
  50. # Darwin/MacOS X
  51. ! darwin8*)
  52. SHOBJ_STATUS=supported
  53. SHLIB_STATUS=supported
  54. --- 143,147 ----
  55. # Darwin/MacOS X
  56. ! darwin[89]*)
  57. SHOBJ_STATUS=supported
  58. SHLIB_STATUS=supported
  59. ***************
  60. *** 154,158 ****
  61. SHLIB_LIBSUFF='dylib'
  62. ! SHOBJ_LDFLAGS='-undefined dynamic_lookup'
  63. SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
  64. --- 154,158 ----
  65. SHLIB_LIBSUFF='dylib'
  66. ! SHOBJ_LDFLAGS='-dynamiclib -dynamic -undefined dynamic_lookup -arch_only `/usr/bin/arch`'
  67. SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
  68. ***************
  69. *** 172,176 ****
  70. case "${host_os}" in
  71. ! darwin[78]*) SHOBJ_LDFLAGS=''
  72. SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
  73. ;;
  74. --- 172,176 ----
  75. case "${host_os}" in
  76. ! darwin[789]*) SHOBJ_LDFLAGS=''
  77. SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
  78. ;;
  79. ***************
  80. *** 183,187 ****
  81. ;;
  82. ! openbsd*)
  83. SHOBJ_CFLAGS=-fPIC
  84. SHOBJ_LD='${CC}'
  85. --- 183,187 ----
  86. ;;
  87. ! openbsd*|netbsd*)
  88. SHOBJ_CFLAGS=-fPIC
  89. SHOBJ_LD='${CC}'
  90. ***************
  91. *** 248,252 ****
  92. ;;
  93. ! aix4.[2-9]*-*gcc*) # lightly tested by jik@cisco.com
  94. SHOBJ_CFLAGS=-fpic
  95. SHOBJ_LD='ld'
  96. --- 248,252 ----
  97. ;;
  98. ! aix4.[2-9]*-*gcc*|aix[5-9].*-*gcc*) # lightly tested by jik@cisco.com
  99. SHOBJ_CFLAGS=-fpic
  100. SHOBJ_LD='ld'
  101. ***************
  102. *** 259,263 ****
  103. ;;
  104. ! aix4.[2-9]*)
  105. SHOBJ_CFLAGS=-K
  106. SHOBJ_LD='ld'
  107. --- 259,263 ----
  108. ;;
  109. ! aix4.[2-9]*|aix[5-9].*)
  110. SHOBJ_CFLAGS=-K
  111. SHOBJ_LD='ld'
  112. ***************
  113. *** 330,334 ****
  114. # if you have problems linking here, moving the `-Wl,+h,$@' from
  115. # SHLIB_XLDFLAGS to SHOBJ_LDFLAGS has been reported to work
  116. ! SHOBJ_LDFLAGS='-shared -Wl,-b -Wl,+s'
  117. SHLIB_XLDFLAGS='-Wl,+h,$@ -Wl,+b,$(libdir)'
  118. --- 330,334 ----
  119. # if you have problems linking here, moving the `-Wl,+h,$@' from
  120. # SHLIB_XLDFLAGS to SHOBJ_LDFLAGS has been reported to work
  121. ! SHOBJ_LDFLAGS='-shared -fpic -Wl,-b -Wl,+s'
  122. SHLIB_XLDFLAGS='-Wl,+h,$@ -Wl,+b,$(libdir)'