[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CC=cc ./configure or ./configure CC=cc
From: |
Bruno Haible |
Subject: |
Re: CC=cc ./configure or ./configure CC=cc |
Date: |
Thu, 10 Aug 2006 14:14:39 +0200 |
User-agent: |
KMail/1.9.1 |
Ralf Wildenhues wrote:
> * standards.texi (Configuration): Document that `configure'
> should accept arguments of the form `VARIABLE=VALUE' and why
> they are preferable over environment variables.
> Suggested by Bruno Haible.
Looks quite good. Just two proposed further changes:
--- standards.texi.rw 2006-08-10 14:03:50.000000000 +0200
+++ standards.texi.rw.bh 2006-08-10 14:08:28.000000000 +0200
@@ -3761,9 +3761,8 @@
@cindex optional features, configure-time
Other options are permitted to specify in more detail the software
-or hardware present on the machine, adjust the name of some tools
-or arguments to them, and include or exclude optional parts of the
-package:
+or hardware present on the machine, to include or exclude optional parts
+of the package, or to adjust the name of some tools or arguments to them:
@table @samp
@item address@hidden@address@hidden@r{]}
@@ -3801,7 +3800,9 @@
Set the value of the variable @var{variable} to @var{value}. This may
be used to override some commands or arguments to values differing from
the ones the build process would use otherwise. For example, the user
-could issue @samp{configure CFLAGS=-g} to build with debugging symbols.
+could issue @samp{configure CFLAGS=-g CXXFLAGS=-g} to build with
+debugging information and without the default optimization.
+
Specifying variables as arguments to @code{configure}:
@example
./configure CC=gcc
The first one is to mention the options in the same order as they
appear in the table (otherwise it can be confusing).
The second one is because
- -g not only adds symbols, but also line number information to an
executable,
- CFLAGS=-g will have no effect if you happen to be compiling a C++
program,
- the default CFLAGS (when using gcc) being "-g -O2", one of the effects
of CFLAGS=-g is to disable the optimisations which make debugging a
big pain.
Bruno
- Re: m4-1.4.6 soon?, Gary V. Vaughan, 2006/08/05
- Re: [bug-gnulib] wcwidth on OSF/1 (was: m4-1.4.6 soon?), Bruno Haible, 2006/08/07
- Re: [bug-gnulib] wcwidth on OSF/1, Gary V. Vaughan, 2006/08/07
- Re: [bug-gnulib] wcwidth on OSF/1, Gary V. Vaughan, 2006/08/07
- Re: [bug-gnulib] wcwidth on OSF/1, Bruno Haible, 2006/08/07
- Re: [bug-gnulib] wcwidth on OSF/1, Gary V. Vaughan, 2006/08/07
- Re: [bug-gnulib] wcwidth on OSF/1, Bruno Haible, 2006/08/08
- Re: [bug-gnulib] wcwidth on OSF/1, Ralf Wildenhues, 2006/08/08
- Message not available
- Re: CC=cc ./configure or ./configure CC=cc, Ralf Wildenhues, 2006/08/09
- Re: CC=cc ./configure or ./configure CC=cc,
Bruno Haible <=
- Re: CC=cc ./configure or ./configure CC=cc, Ralf Wildenhues, 2006/08/10
- Re: CC=cc ./configure or ./configure CC=cc, Paul Eggert, 2006/08/10
- Re: CC=cc ./configure or ./configure CC=cc, Karl Berry, 2006/08/10
- Re: CC=cc ./configure or ./configure CC=cc, Karl Berry, 2006/08/10
- Re: CC=cc ./configure or ./configure CC=cc, Ralf Wildenhues, 2006/08/11
- Re: CC=cc ./configure or ./configure CC=cc, Ralf Wildenhues, 2006/08/15
- Re: CC=cc ./configure or ./configure CC=cc, Karl Berry, 2006/08/17
- Re: CC=cc ./configure or ./configure CC=cc, Karl Berry, 2006/08/19
- Re: [bug-gnulib] wcwidth on OSF/1, Albert Chin, 2006/08/10
- Re: [bug-gnulib] wcwidth on OSF/1, Bruno Haible, 2006/08/11