poky/meta/recipes-support
Khem Raj 26d043bf26 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>
2017-08-09 09:24:15 +01:00
..
2017-07-17 14:01:39 +01:00
2017-05-11 16:59:18 +01:00
2017-06-03 23:46:06 +01:00
2017-07-21 22:51:38 +01:00
2017-06-28 20:55:08 +01:00
2017-05-23 17:45:36 +01:00
2017-05-23 17:45:36 +01:00
2017-07-27 22:36:53 +01:00
2017-05-16 14:08:30 +01:00
2017-07-17 14:01:39 +01:00
2016-08-04 15:22:23 +01:00
2017-06-03 23:46:07 +01:00
2017-05-16 14:08:29 +01:00
2017-05-18 14:01:47 +01:00
2016-10-28 16:15:18 +01:00
2017-03-01 23:27:09 +00:00
2017-07-30 08:46:19 +01:00
2017-06-28 15:52:18 +01:00
2017-03-01 23:27:10 +00:00
2017-05-30 10:15:20 +01:00
2016-11-15 15:19:53 +00:00
2017-06-28 20:55:09 +01:00
2017-06-06 19:52:26 +01:00
2017-03-10 14:50:11 +00:00
2016-12-13 22:55:19 +00:00
2016-11-06 23:35:34 +00:00
2017-06-28 15:52:18 +01:00
2016-09-09 12:12:23 +01:00
2017-06-28 20:55:08 +01:00
2016-07-08 09:57:24 +01:00
2017-08-03 11:14:13 +01:00
2016-11-15 15:19:53 +00:00
2017-06-03 23:46:07 +01:00