Menu

#15 configure script doesnt respect CFLAGS/CXXFLAGS

open
nobody
None
5
2004-01-03
2004-01-03
No

in the configure script there is this at the top:
CFLAGS="-g -W -Wall -O2"
CXXFLAGS="-g -W -Wall -O2"

perhaps something like using this in the top Makefile
would be better:
CFLAGS ?= -g -W -Wall -O2
CXXFLAGS ?= -g -W -Wall -O2

i'm sure you could do this in the configure.ac file but
i dont know how ;)

Discussion

  • Jochen

    Jochen - 2004-03-06

    Logged In: YES
    user_id=85147

    For Debian, i just used this addition to configure.ac:

    # Check whether --with-cflags or --without-cflags was given.
    if test "${with_cflags+set}" = set; then
    withval="$with_cflags"
    CFLAGS=$with_cflags; export CFLAGS
    fi;

    # Check whether --with-cxxflags or --without-cxxflags was given.
    if test "${with_cxxflags+set}" = set; then
    withval="$with_cxxflags"
    CXXFLAGS=$with_cxxflags; export CXXFLAGS
    fi;

    --jochen

     
  • rzr

    rzr - 2011-04-26

    Can you please double check on HEAD (git)
    else please close this bug and reopen when tested ...

    thanks
    --
    http://rzr.online.fr/q/pinball

     

Log in to post a comment.