mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-12 23:03:29 +08:00
package/fftw: enable threads when the toolchain has them
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [based on a patch by Guillaume] Cc: guillaume william brs <guillaume.bressaix@gmail.com> Cc: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Tested-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Reviewed-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
10ce987aa5
commit
4ce91aa31b
@ -29,6 +29,13 @@ FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_SSE2),--enable,--disable)-sse2
|
||||
FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),--enable,--disable)-neon
|
||||
FFTW_CFLAGS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),-mfpu=neon)
|
||||
|
||||
# Generic optimisations
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
FFTW_CONF_OPTS += --enable-threads --with-combined-threads
|
||||
else
|
||||
FFTW_CONF_OPTS += --disable-threads
|
||||
endif
|
||||
|
||||
FFTW_CONF_OPTS += CFLAGS="$(FFTW_CFLAGS)"
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
Loading…
Reference in New Issue
Block a user