patch-boehm-gc_configure 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. $OpenBSD: patch-boehm-gc_configure,v 1.1.1.1 2014/06/26 16:30:15 pascal Exp $
  2. --- boehm-gc/configure.orig Sun Dec 1 23:39:57 2013
  3. +++ boehm-gc/configure Mon Dec 2 12:20:01 2013
  4. @@ -10684,7 +10684,7 @@ netbsd*)
  5. need_version=no
  6. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9. + #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10. dynamic_linker='NetBSD (a.out) ld.so'
  11. else
  12. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13. @@ -14409,7 +14409,7 @@ openbsd*)
  14. *) need_version=no ;;
  15. esac
  16. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18. + #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  19. shlibpath_var=LD_LIBRARY_PATH
  20. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21. case $host_os in
  22. @@ -14785,6 +14785,11 @@ $as_echo "#define _REENTRANT 1" >>confdefs.h
  23. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
  24. $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
  25. ;;
  26. + *-*-openbsd*)
  27. + $as_echo "#define GC_OPENBSD_THREADS 1" >>confdefs.h
  28. + THREADLIBS=-pthread
  29. + INCLUDES="$INCLUDES -pthread"
  30. + ;;
  31. *-*-kfreebsd*-gnu)
  32. $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
  33. @@ -14914,7 +14919,6 @@ else
  34. POWERPC_DARWIN_FALSE=
  35. fi
  36. -
  37. # Darwin needs a few extra special tests to deal with variation in the
  38. # system headers.
  39. case "$host" in
  40. @@ -15224,6 +15228,9 @@ $as_echo "#define DATASTART_IS_ETEXT 1" >>confdefs.h
  41. ;;
  42. sparc-*-netbsd*)
  43. machdep="sparc_netbsd_mach_dep.lo"
  44. + ;;
  45. + sparc*-*-openbsd*)
  46. + machdep="sparc_mach_dep.lo"
  47. ;;
  48. sparc-sun-solaris2.3)
  49. machdep="sparc_mach_dep.lo"