diff options
author | Lada Trimasova <Lada.Trimasova@synopsys.com> | 2016-01-20 18:21:18 +0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-01-20 22:31:52 +0100 |
commit | 1e209d022d751b7874e71858b59ca6cd320d50fc (patch) | |
tree | 3bc8cb9feca40b00b9ab6693e433686fff208bbd | |
parent | 50a93866f0851a9cd06feb95c556f007bc578af1 (diff) | |
download | buildroot-1e209d022d751b7874e71858b59ca6cd320d50fc.tar.gz buildroot-1e209d022d751b7874e71858b59ca6cd320d50fc.zip |
alsa-lib: disable libdl for static only builds
-ldl includes the reference to the library that has
the symbols for loading dynamic libraries.
So there is no need for this library for static only builds.
Even though alsa-lib uses dlopen, it has functions snd_dlopen
and others which can emulate dynamic linking for the static
build of the alsa-lib library and there is no need in libdl
dlopen when static build only.
This patch fixes build failures of the shairport-sync
(and probably other packages) when static libs are used.
Fixes:
http://autobuild.buildroot.net/results/85a/85a3f01bcd4eb2ce7ac480e63b4cc04bf7c8f3e5/
[Thomas: use a single ALSA_LIB_CONF_OPTS for both --enable-shared=no
and --without-libdl.]
Signed-off-by: Lada Trimasova <ltrimas@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/alsa-lib/alsa-lib.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/alsa-lib/alsa-lib.mk b/package/alsa-lib/alsa-lib.mk index ea2351c93a..2075d419db 100644 --- a/package/alsa-lib/alsa-lib.mk +++ b/package/alsa-lib/alsa-lib.mk @@ -20,7 +20,9 @@ ALSA_LIB_CONF_OPTS = \ # Can't build with static & shared at the same time (1.0.25+) ifeq ($(BR2_STATIC_LIBS),y) -ALSA_LIB_CONF_OPTS += --enable-shared=no +ALSA_LIB_CONF_OPTS += \ + --enable-shared=no \ + --without-libdl else ALSA_LIB_CONF_OPTS += --enable-static=no endif |