$OpenBSD: patch-libbacktrace_configure,v 1.1.1.1 2021/08/15 18:42:11 pascal Exp $
Index: libbacktrace/configure
--- libbacktrace/configure.orig
+++ libbacktrace/configure
@@ -6422,7 +6422,7 @@ darwin* | rhapsody*)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
-freebsd* | dragonfly*)
+freebsd* | dragonfly* | openbsd*)
   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
     case $host_cpu in
     i*86 )
@@ -9757,7 +9757,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:
       ;;
 
     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
-    freebsd* | dragonfly*)
+    freebsd* | dragonfly* | openbsd*)
       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
       hardcode_libdir_flag_spec='-R$libdir'
       hardcode_direct=yes
