patch-configure 1.2 KB

12345678910111213141516171819202122232425262728
  1. $OpenBSD: patch-configure,v 1.3 2007/12/03 20:48:39 landry Exp $
  2. --- configure.orig Mon Jun 11 12:25:42 2007
  3. +++ configure Sat Sep 22 11:32:33 2007
  4. @@ -8668,12 +8668,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:
  5. else
  6. case $host_os in
  7. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $compiler_flags'
  10. hardcode_libdir_flag_spec='-R$libdir'
  11. ;;
  12. *)
  13. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  15. + hardcode_libdir_flag_spec='${wl}-R$libdir'
  16. ;;
  17. esac
  18. fi
  19. @@ -9371,6 +9371,8 @@ openbsd*)
  20. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  22. shlibpath_var=LD_LIBRARY_PATH
  23. + sys_lib_search_path_spec="/usr/lib"
  24. + sys_lib_dlsearch_path_spec="/usr/lib $PREFIX/lib"
  25. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26. case $host_os in
  27. openbsd2.[89] | openbsd2.[89].*)