On Tue, Jan 13, 2015 at 02:59:56PM +0100, Jean-Marc Lasgouttes wrote:
> Le 13/01/2015 14:43, Enrico Forestieri a écrit :
> >On Tue, Jan 13, 2015 at 12:18:31PM +0100, Jean-Marc Lasgouttes wrote:
> >>commit ff42fea8ab70dc048bb28dc51120ae30309a3e81
> >>Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
> >>Date:   Tue Jan 13 11:48:07 2015 +0100
> >>
> >>     Cleanup autoconf compiler support
> >
> >Now I always get "-g" even if I use "--disable-debug 
> >--enable-optimization=-O2"
> >
> >   C++ Compiler user flags:  -g -O2
> 
> So you have explicitly set CXXFLAGS somewhere, or config.status
> remember the old setting in its cache. Can you re-run ./configure
> with options?
> 
> I have removed the code where we set the value of CXXFLAGS. I only
> touch AM_CXXFLAGS now. This allow users to override CXXFLAGS as they
> wish.

Hmm... I still get "-g" even after "make distclean" and rerunning configure.

This is how I invoke configure:

../configure --prefix=/opt --with-version-suffix=-2.2 \
    --with-extra-inc=/usr/local/include:/opt/include \
    --with-extra-lib=/usr/local/lib:/opt/lib:/usr/X11/lib \
    --with-libiconv-prefix=/usr/local \
    --with-qt-dir=/opt/qt4 --enable-warnings \
    --disable-debug --disable-stdlib-debug \
    --disable-concept-checks --disable-pch \
    --enable-optimization=-O2 \
    CPPFLAGS=-Wno-unused-local-typedefs \
    am_cv_func_iconv_works=yes


and this is the result:

Configuration
  Host type:               sparc-sun-solaris2.10
  Special build flags:      build=development warnings assertions use-aspell 
use-hunspell
  C++ Compiler:            g++ (4.9.2)
  C++ Compiler flags:       -I/usr/local/include  -I/opt/include  -Wextra -Wall 
-Wfloat-conversion
  C++ Compiler user flags: -Wno-unused-local-typedefs -g -O2
  Linker flags:
  Linker user flags:        -L/usr/local/lib -Wl,-R/usr/local/lib -L/opt/lib 
-Wl,-R/opt/lib -L/usr/X11/lib -Wl,-R/usr/X11/lib
  Qt Frontend:
      Qt version:               4.8.6
  Packaging:               posix
  LyX binary dir:          /opt/bin
  LyX files dir:           /opt/share/lyx-2.2

-- 
Enrico

Reply via email to