libpfm4: fix static-only build
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 7 Aug 2015 09:40:35 +0000 (11:40 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 7 Aug 2015 09:40:35 +0000 (11:40 +0200)
By default, libpfm4 tries to build a shared library. However, by
passing CONFIG_PFMLIB_SHARED=n, we can convince it to build only a
static library. Therefore, this commit uses that to fix the
static-only build, therefore fixing:

  http://autobuild.buildroot.net/results/efa/efae782912face7c36417dfb1023228d6b137654/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libpfm4/libpfm4.mk

index 11106720aa0f01aca03d71c24f0b64b5dec8a740..e2fff80882e8ea3620d836c672f48636141f1930 100644 (file)
@@ -11,7 +11,9 @@ LIBPFM4_LICENSE = libpfm4 license
 LIBPFM4_LICENSE_FILES = COPYING
 LIBPFM4_INSTALL_STAGING = YES
 
-LIBPFM4_FLAGS = SYS=Linux ARCH=$(BR2_ARCH) CC="$(TARGET_CC)" LDCONFIG=true
+LIBPFM4_FLAGS = SYS=Linux ARCH=$(BR2_ARCH) \
+       CC="$(TARGET_CC)" LDCONFIG=true \
+       CONFIG_PFMLIB_SHARED=$(if $(BR2_STATIC_LIBS),n,y)
 
 define LIBPFM4_BUILD_CMDS
        $(MAKE) -C $(@D) $(LIBPFM4_FLAGS)