$OpenBSD: patch-configure,v 1.2 2017/07/27 14:06:31 sthen Exp $
Index: configure
--- configure.orig
+++ configure
@@ -15066,7 +15066,7 @@ if test "${ac_cv_lib_jack_jack_port_register+set}" = s
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-ljack  $LIBS"
+LIBS="`pkg-config --libs jack`  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -15493,7 +15493,7 @@ $as_echo "$set_enable_debug" >&6; }
 if test "$set_enable_debug" = "yes"; then
   CXXFLAGS="$CXXFLAGS -O0 -g -Wall"
 else
-  CXXFLAGS="$CXXFLAGS -O3 -finline-functions -finline-functions-called-once -Wall"
+  CXXFLAGS="$CXXFLAGS -finline-functions -finline-functions-called-once -Wall"
 fi
 
  if test "$DSSI_FOUND" = "yes"; then
