patch-configure 852 B

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-configure,v 1.4 2015/04/15 21:58:16 jeremy Exp $
  2. Override the arch setting to remove OpenBSD version from it,
  3. so ports don't have to be bumped when OpenBSD version changes.
  4. --- configure.orig Thu Jun 27 04:57:43 2013
  5. +++ configure Mon Apr 13 19:51:16 2015
  6. @@ -10912,7 +10912,7 @@ if test "$enable_shared" = 'yes'; then
  7. ;;
  8. openbsd*)
  9. SOLIBS='$(LIBS)'
  10. - LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
  11. + LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.'${LIBruby18_VERSION}
  12. ;;
  13. solaris*)
  14. SOLIBS='$(LIBS)'
  15. @@ -11215,7 +11215,10 @@ _ACEOF
  16. _ACEOF
  17. else
  18. - arch="${target_cpu}-${target_os}"
  19. + case "$target_os" in
  20. + openbsd*) arch="$target_cpu-openbsd" ;;
  21. + *) arch="${target_cpu}-${target_os}" ;;
  22. + esac
  23. cat >>confdefs.h <<_ACEOF
  24. #define RUBY_PLATFORM "${arch}"
  25. _ACEOF