From cc51916072f645e0ff6528f515d9de17655929de Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 19 Jul 2017 12:30:40 +0200 Subject: [PATCH] Tag sodium_runtime_has_*() symbols as weak --- src/libsodium/include/sodium/runtime.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/libsodium/include/sodium/runtime.h b/src/libsodium/include/sodium/runtime.h index 76859ea0..087354ab 100644 --- a/src/libsodium/include/sodium/runtime.h +++ b/src/libsodium/include/sodium/runtime.h @@ -8,31 +8,31 @@ extern "C" { #endif -SODIUM_EXPORT +SODIUM_EXPORT __attribute__((weak)) int sodium_runtime_has_neon(void); -SODIUM_EXPORT +SODIUM_EXPORT __attribute__((weak)) int sodium_runtime_has_sse2(void); -SODIUM_EXPORT +SODIUM_EXPORT __attribute__((weak)) int sodium_runtime_has_sse3(void); -SODIUM_EXPORT +SODIUM_EXPORT __attribute__((weak)) int sodium_runtime_has_ssse3(void); -SODIUM_EXPORT +SODIUM_EXPORT __attribute__((weak)) int sodium_runtime_has_sse41(void); -SODIUM_EXPORT +SODIUM_EXPORT __attribute__((weak)) int sodium_runtime_has_avx(void); -SODIUM_EXPORT +SODIUM_EXPORT __attribute__((weak)) int sodium_runtime_has_avx2(void); -SODIUM_EXPORT +SODIUM_EXPORT __attribute__((weak)) int sodium_runtime_has_pclmul(void); -SODIUM_EXPORT +SODIUM_EXPORT __attribute__((weak)) int sodium_runtime_has_aesni(void); /* ------------------------------------------------------------------------- */