9fe80155bd
so ports don't have to be bumped when OpenBSD version changes. OK landry@, jcs@
29 lines
852 B
Plaintext
29 lines
852 B
Plaintext
$OpenBSD: patch-configure,v 1.3 2011/07/19 17:06:39 jeremy Exp $
|
|
|
|
Override the arch setting to remove OpenBSD version from it,
|
|
so ports don't have to be bumped when OpenBSD version changes.
|
|
|
|
--- configure.orig Sat Jul 2 02:54:02 2011
|
|
+++ configure Mon Jul 18 15:21:06 2011
|
|
@@ -10706,7 +10706,7 @@ if test "$enable_shared" = 'yes'; then
|
|
;;
|
|
openbsd*)
|
|
SOLIBS='$(LIBS)'
|
|
- LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
|
|
+ LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.'${LIBruby18_VERSION}
|
|
;;
|
|
solaris*)
|
|
SOLIBS='$(LIBS)'
|
|
@@ -11009,7 +11009,10 @@ _ACEOF
|
|
_ACEOF
|
|
|
|
else
|
|
- arch="${target_cpu}-${target_os}"
|
|
+ case "$target_os" in
|
|
+ openbsd*) arch="$target_cpu-openbsd" ;;
|
|
+ *) arch="${target_cpu}-${target_os}" ;;
|
|
+ esac
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define RUBY_PLATFORM "${arch}"
|
|
_ACEOF
|