]> sigrok.org Git - sigrok-cli.git/commit
configure.ac: Fix CFLAGS settings.
authorUwe Hermann <redacted>
Fri, 28 Dec 2012 16:30:56 +0000 (17:30 +0100)
committerUwe Hermann <redacted>
Fri, 28 Dec 2012 16:30:56 +0000 (17:30 +0100)
commit12ea952e9a86f5184bf4e52b6a80fbf7072d50f4
tree75dbb84a8af569595ea0311ce4cf4695a6b22762
parent3d905bcc7cf67536f715b7abcf8f566015f325ef
configure.ac: Fix CFLAGS settings.

Don't override/overwrite CFLAGS in configure.ac, but rather amend it
with (currently) "-Wall -Wextra".

This properly allows users/packagers to do things like:

 ./configure (this will default to using "-g -O2" additionally)

 CFLAGS="-g -O2" ./configure (same as above)

 CFLAGS="" ./configure (no additional flags)

 CFLAGS="-g -O0" ./configure (disable optimization, e.g. for valgrind use)

 etc. etc.
configure.ac