libglib-libtool.patch 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. --- glib/ltconfig
  2. +++ glib/ltconfig
  3. @@ -450,6 +450,7 @@
  4. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  5. case "$host_os" in
  6. linux-gnu*) ;;
  7. +linux-uclibc*) ;;
  8. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  9. esac
  10. @@ -1981,6 +1982,28 @@
  11. fi
  12. ;;
  13. +linux-uclibc*)
  14. + version_type=linux
  15. + need_lib_prefix=no
  16. + need_version=no
  17. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  18. + soname_spec='${libname}${release}.so$major'
  19. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  20. + shlibpath_var=LD_LIBRARY_PATH
  21. + shlibpath_overrides_runpath=no
  22. + # deplibs_check_method=pass_all
  23. + deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  24. + file_magic_cmd=/usr/bin/file
  25. + file_magic_test_file=`echo /lib/libuClibc-*.so`
  26. + # This implies no fast_install, which is unacceptable.
  27. + # Some rework will be needed to allow for fast_install
  28. + # before this can be enabled.
  29. + # Note: copied from linux-gnu, and may not be appropriate.
  30. + hardcode_into_libs=yes
  31. + # Assume using the uClibc dynamic linker.
  32. + dynamic_linker="uClibc ld.so"
  33. + ;;
  34. +
  35. netbsd*)
  36. version_type=sunos
  37. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38. --- g/configure
  39. +++ g/configure
  40. @@ -966,6 +966,7 @@
  41. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  42. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  43. echo "$ac_t""$host" 1>&6
  44. +host_alias=$host
  45. echo $ac_n "checking build system type""... $ac_c" 1>&6
  46. echo "configure:972: checking build system type" >&5
  47. diff -urN glib-1.2.10-0rig/ltconfig glib-1.2.10/ltconfig
  48. --- glib-1.2.10-0rig/ltconfig 2009-01-17 02:56:10.000000000 +0100
  49. +++ glib-1.2.10/ltconfig 2009-01-17 02:55:40.000000000 +0100
  50. @@ -448,6 +448,9 @@
  51. fi
  52. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  53. +echo $ac_n "host_os... $host_os" 1>&5
  54. +echo $ac_n "host_os... $host_os" 1>&6
  55. +
  56. case "$host_os" in
  57. linux-gnu*) ;;
  58. linux-uclibc*) ;;
  59. @@ -761,6 +764,7 @@
  60. ;;
  61. *)
  62. can_build_shared=no
  63. + echo "$progname:764: No OS found: host_os = $host_os" >&5
  64. ;;
  65. esac
  66. fi
  67. @@ -1791,6 +1795,8 @@
  68. # If you have `file' or equivalent on your system and you're not sure
  69. # whether `pass_all' will *always* work, you probably want this one.
  70. echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6
  71. +echo $ac_n "host_os... $host_os" 1>&5
  72. +echo $ac_n "host_os... $host_os" 1>&6
  73. case "$host_os" in
  74. aix3*)
  75. version_type=linux
  76. @@ -1982,7 +1988,7 @@
  77. fi
  78. ;;
  79. -linux-uclibc*)
  80. +*-linux | linux-uclibc*)
  81. version_type=linux
  82. need_lib_prefix=no
  83. need_version=no