mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
Fixes https://autobuild.buildroot.org/results/3e954cf8e4365d81e58949df50db7e82bf0d0ebf/ Rnnoise refuses to build with -Ofast unless FLOAT_APPROX is defined: src/arch.h:171:2: error: #error Cannot build libopus with -ffast-math unless FLOAT_APPROX is defined. This could result in crashes on extreme (e.g. NaN) input So do that. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
21 lines
615 B
Makefile
21 lines
615 B
Makefile
################################################################################
|
|
#
|
|
# rnnoise
|
|
#
|
|
################################################################################
|
|
|
|
RNNOISE_VERSION = 0.2
|
|
RNNOISE_SITE = https://github.com/xiph/rnnoise/releases/download/v$(RNNOISE_VERSION)
|
|
RNNOISE_LICENSE = BSD-3-Clause
|
|
RNNOISE_LICENSE_FILES = COPYING
|
|
RNNOISE_INSTALL_STAGING = YES
|
|
|
|
RNNOISE_CONF_OPTS = --disable-examples
|
|
|
|
# rnnoise refuses to build with -Ofast unless FLOAT_APPROX is defined
|
|
ifeq ($(BR2_OPTIMIZE_FAST),y)
|
|
RNNOISE_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DFLOAT_APPROX"
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|