$OpenBSD: patch-configure,v 1.5 2004/02/10 23:39:24 espie Exp $
--- configure.orig	2004-02-09 01:35:43.000000000 +0100
+++ configure	2004-02-09 01:40:44.000000000 +0100
@@ -5416,7 +5416,7 @@ else
     ;;
 
   openbsd*)
-    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
     hardcode_libdir_flag_spec='-R$libdir'
     hardcode_direct=yes
     hardcode_shlibpath_var=no
@@ -7708,7 +7708,7 @@ if test "${ac_cv_lib_vorbis_vorbis_comme
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lvorbis  $LIBS"
+LIBS="-lvorbis -lm $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 #include "confdefs.h"
@@ -7762,7 +7762,7 @@ if test $ac_cv_lib_vorbis_vorbis_comment
 #define HAVE_LIBVORBIS 1
 _ACEOF
 
-  LIBS="-lvorbis $LIBS"
+  LIBS="-lvorbis -lm $LIBS"
 
 else
   enable_ogg=no
