Files
poky/meta/recipes-devtools
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-30 08:46:20 +01:00
2017-07-17 14:01:38 +01:00
2017-07-21 11:12:44 +01:00
2017-08-09 09:24:15 +01:00
2017-06-28 15:52:18 +01:00
2017-06-28 20:55:08 +01:00
2017-06-28 15:52:18 +01:00
2017-03-01 23:27:06 +00:00
2017-07-17 14:01:38 +01:00
2017-05-12 08:51:09 +01:00
2017-07-31 15:13:32 +01:00
2017-06-22 09:16:00 +01:00
2017-05-29 15:15:20 +01:00
2017-07-31 15:13:31 +01:00
2017-06-28 15:52:17 +01:00
2017-07-21 22:51:38 +01:00
2017-07-08 13:34:46 +01:00
2017-04-05 23:22:13 +01:00
2017-07-27 22:36:52 +01:00
2017-07-06 14:38:14 +01:00
2017-02-23 12:49:51 -08:00
2017-06-28 20:55:08 +01:00
2017-07-27 22:36:53 +01:00