cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl configuration and CFLAGS

From: Ben Greear <greearb_at_candelatech.com>
Date: Fri, 26 Mar 2010 13:03:39 -0700

On 03/26/2010 12:53 PM, Marco Maggi wrote:
> "Ben Greear" wrote:
>> The configure stage is using -Werror for it's various
>> tests and many of them are failing.
>>
>> Does anyone know how to pass flags only to the
>> compile-state of CURL and not to the configure stage?
>
> Sorry if I do not understand you correctly; while building
> curl, you want to use custom flags for the compiler but you
> do not want to break the test program run by the "configure"
> script?
>
> If you are using the Makefile running "make" from a
> terminal, after configuration, it should be enough to:
>
> $ make CFLAGS='<your flags here>'

I was hoping to have it be a configure option. I got something
working (see patch I posted a few minutes ago), but the
logic that adds -Werror by cat'ing a file is pretty ugly.

Thanks,
Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-26