openbsd-ports/lang/ruby/3.0/patches/patch-configure
jeremy 96dde96d66 Import Ruby 3.0.0
OK rsadowski
2020-12-28 16:45:27 +00:00

29 lines
693 B
Plaintext

$OpenBSD: patch-configure,v 1.1.1.1 2020/12/28 16:45:27 jeremy Exp $
Set correct shared library name.
Override the arch setting to remove OpenBSD version from it,
so ports don't have to be bumped when OpenBSD version changes.
Index: configure
--- configure.orig
+++ configure
@@ -29762,7 +29762,7 @@ fi
;; #(
openbsd*|mirbsd*) :
- LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
+ LIBRUBY_SO='lib$(RUBY_SO_NAME).so.'${LIBruby30_VERSION}
;; #(
solaris*) :
@@ -31331,7 +31331,7 @@ _ACEOF
else
- arch="${target_cpu}-${target_os}"
+ arch="${target_cpu}-openbsd"
cat >>confdefs.h <<_ACEOF
#define RUBY_PLATFORM "$arch"
_ACEOF