patch-configure 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. $OpenBSD: patch-configure,v 1.1 2004/03/02 04:46:46 kevlo Exp $
  2. --- configure.orig 2004-03-02 12:33:19.000000000 +0000
  3. +++ configure 2004-03-02 12:40:34.000000000 +0000
  4. @@ -2372,7 +2372,14 @@ old_postuninstall_cmds=
  5. if test -n "$RANLIB"; then
  6. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  7. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  8. + case "$host_os" in
  9. + openbsd*)
  10. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  11. + ;;
  12. + *)
  13. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  14. + ;;
  15. + esac
  16. fi
  17. # Allow CC to be a program name with arguments.
  18. @@ -2895,7 +2902,9 @@ cygwin* | mingw* | pw32* )
  19. with_gnu_ld=no
  20. fi
  21. ;;
  22. -
  23. +openbsd*)
  24. + with_gnu_ld=no
  25. + ;;
  26. esac
  27. ld_shlibs=yes
  28. @@ -3299,10 +3308,21 @@ else
  29. ;;
  30. openbsd*)
  31. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32. - hardcode_libdir_flag_spec='-R$libdir'
  33. hardcode_direct=yes
  34. hardcode_shlibpath_var=no
  35. + case "$host_os" in
  36. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  37. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38. + hardcode_libdir_flag_spec='-R$libdir'
  39. + ;;
  40. + *)
  41. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  42. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  43. + if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  44. + export_dynamic_flag_spec='${wl}-E'
  45. + fi
  46. + ;;
  47. + esac
  48. ;;
  49. os2*)
  50. @@ -3791,9 +3811,23 @@ newsos6)
  51. openbsd*)
  52. version_type=sunos
  53. - if test "$with_gnu_ld" = yes; then
  54. - need_lib_prefix=no
  55. - need_version=no
  56. + need_lib_prefix=no
  57. + need_version=no
  58. + file_magic_cmd=/usr/bin/file
  59. + file_magic_test_file=`echo /usr/lib/libc.so.*`
  60. + if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  61. + deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  62. + case "$host_os" in
  63. + openbsd2.[89] | openbsd2.[89].*)
  64. + shlibpath_overrides_runpath=no
  65. + ;;
  66. + *)
  67. + shlibpath_overrides_runpath=yes
  68. + ;;
  69. + esac
  70. + else
  71. + deplibs_check_method='file_magic OpenBSD.* shared library'
  72. + shlibpath_overrides_runpath=yes
  73. fi
  74. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  75. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'