mirror of
https://git.busybox.net/buildroot.git
synced 2025-01-26 14:23:24 +08:00
package: use BR2_TOOLCHAIN_HAS_OPENMP
Switch from using BR2_GCC_ENABLE_OPENMP to BR2_TOOLCHAIN_HAS_OPENMP to determine OpenMP support in the following packages: fftw flann opencv3 Signed-off-by: Ed Blake <ed.blake@sondrel.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
69deeb341c
commit
aea1a0e5a3
@ -27,10 +27,10 @@ endif
|
||||
# Generic optimisations
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
FFTW_COMMON_CONF_OPTS += --enable-threads
|
||||
FFTW_COMMON_CONF_OPTS += $(if $(BR2_GCC_ENABLE_OPENMP),--without,--with)-combined-threads
|
||||
FFTW_COMMON_CONF_OPTS += $(if $(BR2_TOOLCHAIN_HAS_OPENMP),--without,--with)-combined-threads
|
||||
else
|
||||
FFTW_COMMON_CONF_OPTS += --disable-threads
|
||||
endif
|
||||
FFTW_COMMON_CONF_OPTS += $(if $(BR2_GCC_ENABLE_OPENMP),--enable,--disable)-openmp
|
||||
FFTW_COMMON_CONF_OPTS += $(if $(BR2_TOOLCHAIN_HAS_OPENMP),--enable,--disable)-openmp
|
||||
|
||||
include $(sort $(wildcard package/fftw/*/*.mk))
|
||||
|
@ -14,7 +14,7 @@ FLANN_CONF_OPTS = \
|
||||
-DBUILD_PYTHON_BINDINGS=OFF \
|
||||
-DBUILD_MATLAB_BINDINGS=OFF \
|
||||
-DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_FLANN_EXAMPLES),ON,OFF) \
|
||||
-DUSE_OPENMP=$(if $(BR2_GCC_ENABLE_OPENMP),ON,OFF) \
|
||||
-DUSE_OPENMP=$(if $(BR2_TOOLCHAIN_HAS_OPENMP),ON,OFF) \
|
||||
-DPYTHON_EXECUTABLE=OFF \
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_HDF5=TRUE
|
||||
|
||||
|
@ -279,7 +279,7 @@ else
|
||||
OPENCV3_CONF_OPTS += -DWITH_OPENGL=OFF
|
||||
endif
|
||||
|
||||
OPENCV3_CONF_OPTS += -DWITH_OPENMP=$(if $(BR2_GCC_ENABLE_OPENMP),ON,OFF)
|
||||
OPENCV3_CONF_OPTS += -DWITH_OPENMP=$(if $(BR2_TOOLCHAIN_HAS_OPENMP),ON,OFF)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENCV3_WITH_PNG),y)
|
||||
OPENCV3_CONF_OPTS += -DWITH_PNG=ON
|
||||
|
Loading…
Reference in New Issue
Block a user