]> code.ossystems Code Review - openembedded-core.git/commit
gmp: add configure.ac patch to append user provided compilation flags
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Tue, 11 Feb 2014 14:58:02 +0000 (16:58 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Feb 2014 17:15:00 +0000 (17:15 +0000)
commit8339b9ac16e7d3206de21a204beffaae5203adbb
tree7c4ea1026db708a0081fab0c9ba8ca3839448b0f
parent1fa7d4331d994b9eeb6f973d1a1f04cb4df92c13
gmp: add configure.ac patch to append user provided compilation flags

gmp configure script is pretty good at auto detecting the ABI and the
tune flags that need to be passes to the compiler. However, the user
provided flags (CFLAGS, CXXFLAGS, CPPFLAGS) take precedence and the ABI
detection may fail, leading to configure errors like the one below:

| configure: error: Oops, mp_limb_t is 32 bits, but the assembler code
| in this configuration expects 64 bits.
| You appear to have set $CFLAGS, perhaps you also need to tell GMP the
| intended ABI, see "ABI and ISA" in the manual.

One solution would be to change the recipe and add the ABI manually, or
let gmp do the job.

So, this patch will:
 * allow the configure process to auto-detect the ABI and tune flags
   properly;
 * append our flags to the detected ones;

[YOCTO #5783]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/gmp/gmp-5.1.1/append_user_provided_flags.patch [new file with mode: 0644]
meta/recipes-support/gmp/gmp_5.1.1.bb