From 9c808710f6f0be9d7923d937768d7da8461666cb Mon Sep 17 00:00:00 2001 From: Ed Blake Date: Tue, 26 Mar 2019 12:30:45 +0000 Subject: toolchain-external: introduce BR2_TOOLCHAIN_HAS_OPENMP Add new BR2_TOOLCHAIN_HAS_OPENMP option for toolchains with OpenMP support. Signed-off-by: Ed Blake Signed-off-by: Thomas Petazzoni --- toolchain/Config.in | 3 +++ toolchain/toolchain-external/pkg-toolchain-external.mk | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/toolchain/Config.in b/toolchain/Config.in index 3f297f6b43..552220123f 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -168,6 +168,9 @@ config BR2_TOOLCHAIN_HAS_SSP config BR2_TOOLCHAIN_HAS_UCONTEXT bool +config BR2_TOOLCHAIN_HAS_OPENMP + bool + config BR2_TOOLCHAIN_SUPPORTS_PIE bool diff --git a/toolchain/toolchain-external/pkg-toolchain-external.mk b/toolchain/toolchain-external/pkg-toolchain-external.mk index db3570d96f..747837fdc6 100644 --- a/toolchain/toolchain-external/pkg-toolchain-external.mk +++ b/toolchain/toolchain-external/pkg-toolchain-external.mk @@ -144,6 +144,10 @@ TOOLCHAIN_EXTERNAL_LIBS += libquadmath.so* endif endif +ifeq ($(BR2_TOOLCHAIN_HAS_OPENMP),y) +TOOLCHAIN_EXTERNAL_LIBS += libgomp.so.* +endif + TOOLCHAIN_EXTERNAL_LIBS += $(call qstrip,$(BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS)) -- cgit v1.2.3