cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ./configure --enable-optimize

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 28 May 2014 09:21:22 +0200

On Wednesday, May 28, 2014 00:38:29 Daniel Stenberg wrote:
> On Sun, 25 May 2014, Дилян Палаузов wrote:
> > Autoconf provides sufficient mechanisms to pass (optimizing) options to
> > the
> > compiler. One such option is via /usr/local/etc/config.site, which on my
> > system contains:
> >
> > export CFLAGS='-pipe -O2 -Wl,-S -Wl,--hash-style=gnu -Wl,-O1 -Wl,-z,relro
> > -Wall -Wextra'
>
> Yes, configure allows you to set flags in CFLAGS and it'll use them. Our
> configure should acknowledge and use that when provided. Doesn't it do that
> fine already?

Not really. We need to patch curl's configure script in Fedora packages
such that it respects the compiler flags we are interested in:

http://pkgs.fedoraproject.org/cgit/curl.git/tree/0102-curl-7.36.0-debug.patch?id=69703f00

Kamil

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-05-28