2560cbb6fe
Set `DBG` to an empty value to disable -Werror when building libpfm4. Build aborts with a musl toolchain because of warnings about redirecting incorrect header includes. So -Werror shouldn't be used in released code since it can cause random build failures on moderate warnings. It also depends on the used toolchain since different toolchains may or may not print the same warnings. Fixes: http://autobuild.buildroot.net/results/6df/6df9b94a79be1dc5ba878f7b67bf9ad4ce2f2e98/ Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
32 lines
872 B
Makefile
32 lines
872 B
Makefile
################################################################################
|
|
#
|
|
# libpfm4
|
|
#
|
|
################################################################################
|
|
|
|
LIBPFM4_VERSION = 4.3.0
|
|
LIBPFM4_SOURCE = libpfm-$(LIBPFM4_VERSION).tar.gz
|
|
LIBPFM4_SITE = http://downloads.sourceforge.net/project/perfmon2/libpfm4
|
|
LIBPFM4_LICENSE = libpfm4 license
|
|
LIBPFM4_LICENSE_FILES = COPYING
|
|
LIBPFM4_INSTALL_STAGING = YES
|
|
|
|
LIBPFM4_FLAGS = SYS=Linux ARCH=$(BR2_ARCH) \
|
|
CC="$(TARGET_CC)" LDCONFIG=true \
|
|
CONFIG_PFMLIB_SHARED=$(if $(BR2_STATIC_LIBS),n,y) \
|
|
DBG=
|
|
|
|
define LIBPFM4_BUILD_CMDS
|
|
$(MAKE) -C $(@D) $(LIBPFM4_FLAGS)
|
|
endef
|
|
|
|
define LIBPFM4_INSTALL_STAGING_CMDS
|
|
make -C $(@D) $(LIBPFM4_FLAGS) PREFIX=$(STAGING_DIR)/usr install
|
|
endef
|
|
|
|
define LIBPFM4_INSTALL_TARGET_CMDS
|
|
make -C $(@D) $(LIBPFM4_FLAGS) PREFIX=$(TARGET_DIR)/usr install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|