From 7b60305252c87a9d80f45d08e6f82bbb7906e59a Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 1 Jun 2012 06:26:25 +0000
Subject: [PATCH] When using ALSA or PortAudio, we need -ldl for XPBEEP

---
 src/xpdev/Common.gmake | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/xpdev/Common.gmake b/src/xpdev/Common.gmake
index 5cb7242365..4dd3e731c6 100644
--- a/src/xpdev/Common.gmake
+++ b/src/xpdev/Common.gmake
@@ -187,5 +187,13 @@ ifndef WITHOUT_PORTAUDIO
 
  ifneq ($(PORTAUDIO_PATH),NOTFOUND)
   XPDEV_CFLAGS += -DWITH_PORTAUDIO
+  ifeq ($(os),linux)
+   XPDEV-MT_LIBS += -ldl
+   XPDEV_LIBS += -ldl
+  endif
  endif
 endif
+ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
+ XPDEV-MT_LIBS += -ldl
+ XPDEV_LIBS += -ldl
+endif
-- 
GitLab