Make sure alsa-lib build with correct python version
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 11 Jan 2009 20:10:57 +0000 (20:10 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 11 Jan 2009 20:10:57 +0000 (20:10 -0000)
package/multimedia/alsa-lib/alsa-lib.mk

index 6e97c8a609215d2e28f0ef0d3db0abef63c893bf..019879b5ab7292f714caaddc389e10ac8d9ed8bf 100644 (file)
@@ -17,6 +17,10 @@ else
 ALSA_LIB_ABI:=
 endif
 
+ifeq ($(BR2_PACKAGE_PYTHON),y)
+ALSA_LIB_CONFIGURE_OPTS += --with-pythonlibs=-lpython$(PYTHON_VERSION_MAJOR)
+endif
+
 ifeq ($(BR2_SOFT_FLOAT),y)
        SOFT_FLOAT=--with-softfloat
 endif
@@ -45,6 +49,7 @@ $(ALSA_LIB_DIR)/.configured: $(ALSA_LIB_DIR)/.unpacked
                --enable-shared \
                --enable-static \
                --disable-docs \
+               $(ALSA_LIB_CONFIGURE_OPTS) \
                $(SOFT_FLOAT) \
                $(DISABLE_NLS) \
        )