Patchwork [meta-oe,1/2] ode: Explicitly disable double-precision with PACKAGECONFIG

login
register
mail settings
Submitter Martin Jansa
Date Feb. 26, 2014, 11:15 p.m.
Message ID <1393456501-30516-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/67531/
State New, archived
Headers show

Comments

Martin Jansa - Feb. 26, 2014, 11:15 p.m.
* when it's left for autodetection, configure fails for qemux86* when
   ==  and configure calls AC_TRY_RUN

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-oe/recipes-support/ode/ode_0.9.bb | 4 ++++
 1 file changed, 4 insertions(+)
Martin Jansa - Feb. 27, 2014, 9:58 a.m.
On Thu, Feb 27, 2014 at 12:15:00AM +0100, Martin Jansa wrote:
> * when it's left for autodetection, configure fails for qemux86* when
>    ==  and configure calls AC_TRY_RUN

Missing "$build_os" == "$target_os" added in master-next branch.

> 
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  meta-oe/recipes-support/ode/ode_0.9.bb | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/meta-oe/recipes-support/ode/ode_0.9.bb b/meta-oe/recipes-support/ode/ode_0.9.bb
> index 1f3a5ca..8b9955e 100644
> --- a/meta-oe/recipes-support/ode/ode_0.9.bb
> +++ b/meta-oe/recipes-support/ode/ode_0.9.bb
> @@ -22,3 +22,7 @@ do_configure_append() {
>  
>  FILES_${PN} = "${libdir}/lib*${SOLIBS}"
>  
> +PACKAGECONFIG ?= ""
> +# if it isn't explicitly selected and "$build_os" == "$target_os", then configure will run
> +# series of AC_TRY_RUN which won't work for cross-compilation and configure fails
> +PACKAGECONFIG[double-precision] = "--enable-double-precision,--disable-double-precision"
> -- 
> 1.9.0
>

Patch

diff --git a/meta-oe/recipes-support/ode/ode_0.9.bb b/meta-oe/recipes-support/ode/ode_0.9.bb
index 1f3a5ca..8b9955e 100644
--- a/meta-oe/recipes-support/ode/ode_0.9.bb
+++ b/meta-oe/recipes-support/ode/ode_0.9.bb
@@ -22,3 +22,7 @@  do_configure_append() {
 
 FILES_${PN} = "${libdir}/lib*${SOLIBS}"
 
+PACKAGECONFIG ?= ""
+# if it isn't explicitly selected and "$build_os" == "$target_os", then configure will run
+# series of AC_TRY_RUN which won't work for cross-compilation and configure fails
+PACKAGECONFIG[double-precision] = "--enable-double-precision,--disable-double-precision"