patch-src_makemake_in 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. $OpenBSD: patch-src_makemake_in,v 1.12 2015/10/06 11:37:06 jca Exp $
  2. Override broken compiler test, attempting to build 32-bit clisp on a
  3. 64-bit patform will not work out very well.
  4. Use the correct recipe to build shared modules on OpenBSD.
  5. --- src/makemake.in.orig Wed Jul 7 17:15:35 2010
  6. +++ src/makemake.in Tue Sep 29 00:28:57 2015
  7. @@ -1150,6 +1150,7 @@ esac
  8. # esac
  9. test -z "$cpu" && cpu=${host_cpu}
  10. +test "$cpu" = "${host_cpu%*64}" && cpu=${host_cpu}
  11. test "${verbose}" = true -o "${verbose}" = yes && \
  12. cat <<EOF >&2
  13. @@ -1421,10 +1422,10 @@ if [ "${with_dynamic_modules}" != no ]; then
  14. freebsd2.2*)
  15. XCC_CREATESHARED='ld -Bshareable -o $lib $libs /usr/lib/c++rt0.o'
  16. ;;
  17. - freebsd2* | netbsd* | openbsd*)
  18. + freebsd2* | netbsd* )
  19. XCC_CREATESHARED='ld -Bshareable -o $lib $libs'
  20. ;;
  21. - freebsd3* | gnu* | linux* | cygwin* | mingw* | k*bsd* | dragonfly*)
  22. + freebsd3* | gnu* | linux* | cygwin* | mingw* | k*bsd* | dragonfly* | openbsd* )
  23. XCC_CREATESHARED='${CC} ${CFLAGS} ${CLFLAGS} -shared -o $lib $libs'
  24. ;;
  25. hpux9* | hpux10*)
  26. @@ -1904,7 +1905,7 @@ echol "# This can also be used for pre-test and post-r
  27. echol "# make distrib VERSION_SUFFIX=pre"
  28. echol "VERSION_SUFFIX="
  29. echol "# The distribution's top directory"
  30. -echol 'TOPDIR=clisp-$(VERSION)$(VERSION_SUFFIX)'
  31. +echol 'TOPDIR=clisp'
  32. echol
  33. echol '# Directories used by "make install":'
  34. echol "prefix = ${PREFIX}"
  35. @@ -2931,7 +2932,7 @@ fi
  36. CLISP_="${HERE_}lisp${LEXE} -M ${HERE_}lispinit.mem ${localeflags}${someflags}"
  37. if [ $CROSS = false ] ; then
  38. - CHECK_DEPS="check-recompile check-fresh-line check-script check-exec-image check-tests"
  39. + CHECK_DEPS="check-recompile check-fresh-line check-script check-tests"
  40. echol "# check the sources:"
  41. echol "# 1. subr.d, fsubr.d, subrkw.d and all the LISPFUNs must add up"