From patchwork Fri Dec 7 04:45:27 2012
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [Bug,5768] New: Not able to build ALSA-Lib for static build
Date: Thu, 06 Dec 2012 18:45:27 -0000
From: bugzilla@busybox.net
X-Patchwork-Id: 204385
Message-Id:
To: buildroot@uclibc.org
https://bugs.busybox.net/show_bug.cgi?id=5768
Summary: Not able to build ALSA-Lib for static build
Product: buildroot
Version: 2012.08
Platform: PC
OS/Version: Windows
Status: NEW
Severity: critical
Priority: P5
Component: Other
AssignedTo: unassigned@buildroot.uclibc.org
ReportedBy: pankaj.dev@st.com
CC: buildroot@uclibc.org
Estimated Hours: 0.0
When building ALSA-Lib for static build, there is a compilation faliure. Added
a patch(attached) inside "package/alsa-lib" directory to build properly.
Not able to log this bug in ALSA project, the web-site hangs. The bug also
exists in ALSA 1.0.26(latest) included in buildroot 2012.11
Changes are following :
--- a/modules/mixer/simple/sbasedl.c
+++ b/modules/mixer/simple/sbasedl.c
@@ -27,7 +27,11 @@
#include
#include
#include
+#ifdef HAVE_LIBDL
#include
+#else
+#define RTLD_NOW 0
+#endif
#include "config.h"
#include "asoundlib.h"
#include "mixer_abst.h"
--- a/src/mixer/simple_abst.c
+++ b/src/mixer/simple_abst.c
@@ -34,7 +34,12 @@
#include
#include
#include
+#ifdef HAVE_LIBDL
#include
+#else
+#define RTLD_NOW 0
+#define RTLD_GLOBAL 8
+#endif
#include "config.h"
#include "asoundlib.h"
#include "mixer_simple.h"