diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-12-28 17:03:20 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-12-28 17:03:20 +0100 |
commit | 6ff4cd08a0e6d29dd7587173defb8bf17c0d9b62 (patch) | |
tree | 7c255adf22d4a3889bb5c663334c8f7bb06f1c31 | |
parent | 702fa251997d8e6ac4f71837e1e89d3d537df42a (diff) | |
download | libsigrokdecode-6ff4cd08a0e6d29dd7587173defb8bf17c0d9b62.tar.gz libsigrokdecode-6ff4cd08a0e6d29dd7587173defb8bf17c0d9b62.zip |
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.
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a5335a5..ceb9ed9 100644 --- a/configure.ac +++ b/configure.ac @@ -42,7 +42,7 @@ AH_TOP([#ifndef SRD_CONFIG_H #define SRD_CONFIG_H /* To stop multiple inclusions. */]) AH_BOTTOM([#endif /* SRD_CONFIG_H */]) -CFLAGS="-g -Wall -Wextra" +CFLAGS="$CFLAGS -Wall -Wextra" # Checks for programs. AC_PROG_CXX |