[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: debug builds with NO optimizations
From: |
Brian Dessent |
Subject: |
Re: debug builds with NO optimizations |
Date: |
Mon, 06 Feb 2006 19:36:58 -0800 |
Harlan Stenn wrote:
> With configure CFLAGS=-g, configure knows you are overriding CFLAGS and
> will put that information into config.status.
>
> If you use CFLAGS=-g ./configure, then configure doesn't see that you
> have overridden CFLAGS.
>
> Or something like that.
No, they should result in exactly the same thing.
$ mkdir build1 && cd build1 && CFLAGS="-g0 -O2" ../configure
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
[...]
$ cd ..
$ mkdir build2 && cd build2 && ../configure CFLAGS="-g0 -O2"
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
[...]
$ cd ..
$ diff -u {build1,build2}/config.status
--- build1/config.status 2006-02-06 19:29:38.187500000 -0800
+++ build2/config.status 2006-02-06 19:30:11.250000000 -0800
@@ -294,7 +294,7 @@
ac_cs_version="\
config.status
configured by ../configure, generated by GNU Autoconf 2.59,
- with options \" 'CFLAGS=-g0 -O2'\"
+ with options \"'CFLAGS=-g0 -O2'\"
Copyright (C) 2003 Free Software Foundation, Inc.
This config.status script is free software; the Free Software
Foundation
@@ -373,8 +373,8 @@
fi
if $ac_cs_recheck; then
- echo "running /bin/bash ../configure " 'CFLAGS=-g0 -O2'
$ac_configure_extra_args " --no-create --no-recursion" >&6
- exec /bin/bash ../configure 'CFLAGS=-g0 -O2'
$ac_configure_extra_args --no-create --no-recursion
+ echo "running /bin/bash ../configure " 'CFLAGS=-g0 -O2'
$ac_configure_extra_args " --no-create --no-recursion" >&6
+ exec /bin/bash ../configure 'CFLAGS=-g0 -O2' $ac_configure_extra_args
--no-create --no-recursion
fi
for ac_config_target in $ac_config_targets
$ diff -u {build1,build2}/Makefile
As you can see the Makefiles are identical and the config.statuses
differ by only one insignificant whitespace.
Brian
- Re: debug builds with NO optimizations, (continued)
Re: debug builds with NO optimizations, Howard Chu, 2006/02/06
Re: debug builds with NO optimizations, Bob Rossi, 2006/02/06
- Re: debug builds with NO optimizations, Harlan Stenn, 2006/02/06
- Re: debug builds with NO optimizations,
Brian Dessent <=
- Re: debug builds with NO optimizations, Harlan Stenn, 2006/02/06
- Re: debug builds with NO optimizations, Brian Dessent, 2006/02/06
- Re: debug builds with NO optimizations, Ralf Wildenhues, 2006/02/07
- Re: debug builds with NO optimizations, Ralf Wildenhues, 2006/02/07
- Re: debug builds with NO optimizations, Andre Caldas, 2006/02/13
Message not availableRe: debug builds with NO optimizations, John Calcote, 2006/02/07
Re: debug builds with NO optimizations, Andreas Schwab, 2006/02/07
Re: debug builds with NO optimizations, John Calcote, 2006/02/07
Re: debug builds with NO optimizations, Harald Dunkel, 2006/02/09
Re: debug builds with NO optimizations, Howard Chu, 2006/02/07