summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/automake/automake
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-07-26 21:18:51 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-09 09:24:16 +0100
commit4b2fb6212650ba5594b8c72765b9ce8fe59e4bdc (patch)
tree4b161578387b19fe094f2a1aff10117c2d702cb1 /meta/recipes-devtools/automake/automake
parent5bb613a0e2b26529a4e628d204bdd49d236eda24 (diff)
downloadpoky-4b2fb6212650ba5594b8c72765b9ce8fe59e4bdc.tar.gz
automake: Add missing libtool tag for cppasm language
This is highlighted when CC is passing flags like -fPIE which are stripped by libtool when building shared libs and replaced with -fPIC, this actually results in CC not matching the CC computed from cmdline created for compiling and as a result libtool heuristic to compute tags auotmatically fails. (From OE-Core rev: 519c34adeb0735f6ff606addd00a7bbe19f4b15c) 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-devtools/automake/automake')
-rw-r--r--meta/recipes-devtools/automake/automake/0001-automake-Add-default-libtool_tag-to-cppasm.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-devtools/automake/automake/0001-automake-Add-default-libtool_tag-to-cppasm.patch b/meta/recipes-devtools/automake/automake/0001-automake-Add-default-libtool_tag-to-cppasm.patch
new file mode 100644
index 0000000000..1221f13067
--- /dev/null
+++ b/meta/recipes-devtools/automake/automake/0001-automake-Add-default-libtool_tag-to-cppasm.patch
@@ -0,0 +1,27 @@
1From 25a8ac30486798d23f516722d73eb622e6264f28 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 26 Jul 2017 11:19:56 -0700
4Subject: [PATCH] automake: Add default libtool_tag to cppasm.
5
6 * bin/automake.in (register_language): Define default libtool tag to be CC
7 since CPPASCOMPILE is using CC to call assembler
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11Upstream-Status: Submitted
12
13 bin/automake.in | 1 +
14 1 file changed, 1 insertion(+)
15
16Index: automake-1.15.1/bin/automake.in
17===================================================================
18--- automake-1.15.1.orig/bin/automake.in
19+++ automake-1.15.1/bin/automake.in
20@@ -831,6 +831,7 @@ register_language ('name' => 'cppasm',
21 'compiler' => 'CPPASCOMPILE',
22 'compile_flag' => '-c',
23 'output_flag' => '-o',
24+ 'libtool_tag' => 'CC',
25 'extensions' => ['.S', '.sx']);
26
27 # Fortran 77