f7a2e115a7
Fixes: http://autobuild.buildroot.net/results/b64/b643824d797050d7c001a3b72598158d8f1c6128/ http://autobuild.buildroot.net/results/a2f/a2f2d7b4e9e7b57bc8691e3ec29ecf818be3f79b/ The benchmark tool uses clock_gettime which is available in librt instead of libc in older glibc versions. The build system correctly links with -lrt on Linux systems, but misdetects non-x86 linux systems as !linux, causing build failures. Add a patch to relax the linux OS detection to also work on non-x86 systems. Patch submitted upstream: http://lists.xiph.org/pipermail/flac-dev/2017-January/006103.html Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
36 lines
1015 B
Makefile
36 lines
1015 B
Makefile
################################################################################
|
|
#
|
|
# flac
|
|
#
|
|
################################################################################
|
|
|
|
FLAC_VERSION = 1.3.2
|
|
FLAC_SITE = http://downloads.xiph.org/releases/flac
|
|
FLAC_SOURCE = flac-$(FLAC_VERSION).tar.xz
|
|
FLAC_INSTALL_STAGING = YES
|
|
FLAC_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
FLAC_LICENSE = Xiph BSD-like (libFLAC), GPLv2+ (tools), LGPLv2.1+ (other libraries)
|
|
FLAC_LICENSE_FILES = COPYING.Xiph COPYING.GPL COPYING.LGPL
|
|
# 0001-configure.ac-relax-linux-OS-detection.patch patches configure.ac
|
|
FLAC_AUTORECONF = YES
|
|
FLAC_CONF_OPTS = \
|
|
--disable-cpplibs \
|
|
--disable-xmms-plugin \
|
|
--disable-altivec
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBOGG),y)
|
|
FLAC_CONF_OPTS += --with-ogg=$(STAGING_DIR)/usr
|
|
FLAC_DEPENDENCIES += libogg
|
|
else
|
|
FLAC_CONF_OPTS += --disable-ogg
|
|
endif
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
|
|
FLAC_DEPENDENCIES += host-nasm
|
|
FLAC_CONF_OPTS += --enable-sse
|
|
else
|
|
FLAC_CONF_OPTS += --disable-sse
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|