autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Malloc issue when cross-compiling with autotools


From: Eric Blake
Subject: Re: Malloc issue when cross-compiling with autotools
Date: Mon, 04 Feb 2013 16:56:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 02/04/2013 08:37 AM, Francisco Cuesta wrote:
> 
> I know how to fix it through linux terminal through adding the option *export
> ac_cv_func_malloc_0_nonnull=yes* , but non through Eclipse or autotools
> pluging, since the settings of the project aren't available. May you
> enlighten me?

Can't you set that environment variable before starting eclipse, so that
it propagates all the way through to when eclipse starts running configure?

Or, it might be possible to set up a config.site that pre-populates the
correct answer for your toolchain:
https://www.gnu.org/software/autoconf/manual/autoconf.html#Site-Defaults

> PS: the parameters which I've set in autotools plugin are the following
> ones:
> 
> -Command: configure  CFLAGS="-m32" LDFLAGS="-m32"
> CC=/home/t/s/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/arm-mv5sft-linux-gnueabi-gcc
> CC=c99

I'm not familiar with eclipse, but wouldn't this -Command: line be where
you can add arbitrary options to configure, including
ac_cv_func_malloc_0_nonnull=yes?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]