[Buildroot] [PATCH] beecrypt: enable OpenMP if Buildroot GCC supports it
Arnout Vandecappelle
arnout at mind.be
Sat Oct 13 09:29:28 UTC 2012
On 12/10/12 21:54, Stefan Fröberg wrote:
>
> Signed-off-by: Stefan Fröberg<stefan.froberg at petroprogram.com>
> ---
> package/beecrypt/beecrypt.mk | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/package/beecrypt/beecrypt.mk b/package/beecrypt/beecrypt.mk
> index d165aee..101d0df 100644
> --- a/package/beecrypt/beecrypt.mk
> +++ b/package/beecrypt/beecrypt.mk
> @@ -18,6 +18,12 @@ BEECRYPT_CONF_OPT = \
> --without-java \
> --without-python
>
> +ifeq ($(BR2_GCC_ENABLE_OPENMP),y)
> +BEECRYPT_CONF_OPT += --enable-openmp
> +else
> +BEECRYPT_CONF_OPT += --disable-openmp
> +endif
> +
This doesn't solve the underlying issue that -lgomp isn't included. In
addition, it would only enable openmp for internal toolchains, while it may
be present for ct-ng or external toolchains as well. I think the automatic
detection works well in this case.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
More information about the buildroot
mailing list