summaryrefslogtreecommitdiff
path: root/recipes/openssl.recipe
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2018-04-06 00:38:12 +1000
committerMatthew Waters <matthew@centricular.com>2018-04-09 11:01:05 +1000
commit4f371fa610574b4b0b0cb72fce2302f6d066555b (patch)
treed4861335e115807c0e54785c6a189075da2d9ed7 /recipes/openssl.recipe
parent0071c601a41db1b535935a9b2e789411e8eb6e47 (diff)
openssl: fix linking on android/armv7
Linking an android application for armv7 would result in undefined references with the 1.1.0h update because it seems configure can't seem to detect the max available arm architecture anymore. Fix by specifying on the configure command crypto/evp/e_aes.c:1084: error: undefined reference to 'aes_v8_set_encrypt_key' crypto/evp/e_aes.c:1044: error: undefined reference to 'aes_v8_set_decrypt_key' crypto/evp/e_aes.c:1060: error: undefined reference to 'aes_v8_encrypt' crypto/evp/e_aes.c:1060: error: undefined reference to 'aes_v8_ctr32_encrypt_blocks' crypto/evp/e_aes.c:1060: error: undefined reference to 'aes_v8_cbc_encrypt' crypto/evp/e_aes.c:1060: error: undefined reference to 'bsaes_ctr32_encrypt_blocks' crypto/evp/e_aes.c:1060: error: undefined reference to 'aes_v8_decrypt' crypto/evp/e_aes.c:1060: error: undefined reference to 'bsaes_cbc_encrypt' crypto/evp/e_aes.c:1831: error: undefined reference to 'aes_v8_set_decrypt_key' crypto/evp/e_aes.c:1840: error: undefined reference to 'aes_v8_set_encrypt_key' crypto/evp/e_aes.c:1823: error: undefined reference to 'aes_v8_set_encrypt_key' crypto/evp/e_aes.c:1851: error: undefined reference to 'aes_v8_decrypt' crypto/evp/e_aes.c:1851: error: undefined reference to 'aes_v8_encrypt' crypto/evp/e_aes.c:1851: error: undefined reference to 'bsaes_xts_encrypt' crypto/evp/e_aes.c:1851: error: undefined reference to 'bsaes_xts_decrypt' crypto/evp/e_aes.c:1446: error: undefined reference to 'aes_v8_set_encrypt_key' crypto/evp/e_aes.c:1504: error: undefined reference to 'bsaes_ctr32_encrypt_blocks' crypto/evp/e_aes.c:1504: error: undefined reference to 'aes_v8_encrypt' crypto/evp/e_aes.c:1504: error: undefined reference to 'aes_v8_ctr32_encrypt_blocks' crypto/evp/e_aes.c:2068: error: undefined reference to 'aes_v8_encrypt' crypto/evp/e_aes.c:2480: error: undefined reference to 'aes_v8_set_decrypt_key' crypto/evp/e_aes.c:2525: error: undefined reference to 'aes_v8_decrypt' crypto/modes/gcm128.c:790: error: undefined reference to 'gcm_init_neon' crypto/modes/gcm128.c:785: error: undefined reference to 'gcm_gmult_neon' crypto/modes/gcm128.c:785: error: undefined reference to 'gcm_ghash_neon' crypto/armcap.c:53: error: undefined reference to '_armv7_tick' crypto/armcap.c:167: error: undefined reference to '_armv7_neon_probe' crypto/armcap.c:181: error: undefined reference to '_armv8_sha256_probe' crypto/armcap.c:186: error: undefined reference to '_armv7_tick' crypto/armcap.c:177: error: undefined reference to '_armv8_sha1_probe' crypto/armcap.c:170: error: undefined reference to '_armv8_pmull_probe' crypto/armcap.c:173: error: undefined reference to '_armv8_aes_probe'
Diffstat (limited to 'recipes/openssl.recipe')
-rw-r--r--recipes/openssl.recipe6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes/openssl.recipe b/recipes/openssl.recipe
index 8d99ce56..eb4b3305 100644
--- a/recipes/openssl.recipe
+++ b/recipes/openssl.recipe
@@ -111,6 +111,12 @@ class Recipe(recipe.Recipe):
config_sh += ' no-shared no-dso '
else:
config_sh += ' shared '
+
+ if self.config.target_platform == Platform.ANDROID:
+ if self.config.target_arch == Architecture.ARMv7:
+ # Openssl can't seem to figure this out anymore
+ config_sh += ' -D__ARM_MAX_ARCH__=7 '
+
# ssl3 is needed by sphinx which is used by gst-validate, which tries
# to use this libssl and fails with undefined symbols. md2 is needed by
# librpmio.so.8, which is used during package generation on Fedora.