$OpenBSD: patch-Makefile_am,v 1.5 2016/09/13 08:48:11 dcoppa Exp $
--- Makefile.am.orig	Sun Sep  4 08:48:52 2016
+++ Makefile.am	Sun Sep  4 08:49:05 2016
@@ -51,6 +51,9 @@ deadbeef_SOURCES =\
 sdkdir = $(pkgincludedir)
 sdk_HEADERS = deadbeef.h
 
+# Fix 'undefined symbol' errors when loading plugins
+deadbeef_LDFLAGS = $(LDFLAGS) -Wl,--export-dynamic
+
 deadbeef_LDADD = $(LDADD) $(DEPS_LIBS) $(ICONV_LIB) $(DL_LIBS) -lm -lpthread $(INTL_LIBS) plugins/libparser/libparser.a
 
 AM_CFLAGS = $(DEPS_CFLAGS) -std=c99
