summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libgcrypt
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-07-23 17:47:43 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-09 09:24:15 +0100
commit26d043bf26d7a5489afbe688cb452c4bdd6a91c6 (patch)
treee3e69dd06ba121fafa93e7a1b647e7f94a4ef680 /meta/recipes-support/libgcrypt
parent1cce7f885cf143370c989381ae8c8f4833e7cbd6 (diff)
downloadpoky-26d043bf26d7a5489afbe688cb452c4bdd6a91c6.tar.gz
ossp-uuid, libffi, libgcrypt: Pass --tag=CC option to libtool
libtool tries to guess the --tag value based on CC/CXX environment variables and the compile commandline generated by makefiles. This heuristics however fails when we construct CC variables in OE and add security flags to it, especially -fPIE -pie which are added by external compilers e.g. clang particularly. It fails because libtool removed PIE flags from compiler cmdline intelligently if it figures out that its building a library, which means that the CC variable passed from cmdline does not match with the compiler cmdline constructed by libtool and we end up with errors like | arm-bec-linux-musleabi-libtool: compile: unable to infer tagged configuration | arm-bec-linux-musleabi-libtool: error: specify a tag with '--tag' This works with internal gcc toolchain because we configure gcc for PIE when hardening is selected and dont pass -fPIE -pie options explicitly but this is not an option for clang, and some external gcc toolchains using older gcc This patch adds the --tag option to help libtool set correct tags in packages where it cant get it right via its heuristics (From OE-Core rev: 0505075ae8d339ba097aebb82b4d0ae62f87c0a9) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libgcrypt')
-rw-r--r--meta/recipes-support/libgcrypt/libgcrypt_1.7.8.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-support/libgcrypt/libgcrypt_1.7.8.bb b/meta/recipes-support/libgcrypt/libgcrypt_1.7.8.bb
index 83351594ea..ec8b875efa 100644
--- a/meta/recipes-support/libgcrypt/libgcrypt_1.7.8.bb
+++ b/meta/recipes-support/libgcrypt/libgcrypt_1.7.8.bb
@@ -29,6 +29,7 @@ BINCONFIG = "${bindir}/libgcrypt-config"
29inherit autotools texinfo binconfig-disabled pkgconfig 29inherit autotools texinfo binconfig-disabled pkgconfig
30 30
31EXTRA_OECONF = "--disable-asm" 31EXTRA_OECONF = "--disable-asm"
32EXTRA_OEMAKE_class-target = "LIBTOOLFLAGS='--tag=CC'"
32 33
33PACKAGECONFIG ??= "capabilities" 34PACKAGECONFIG ??= "capabilities"
34PACKAGECONFIG[capabilities] = "--with-capabilities,--without-capabilities,libcap" 35PACKAGECONFIG[capabilities] = "--with-capabilities,--without-capabilities,libcap"