xfce4-volumed configure ignores CFLAGS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xfce4 Volumed |
Fix Released
|
Low
|
Steve Dodier-Lazaro |
Bug Description
hidalgo# CFLAGS="-O1" ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for XFCONF... yes
checking for GSTREAMER... yes
checking for GSTREAMER_AUDIO... yes
checking for LIBKEYBINDER... yes
checking for LIBNOTIFY... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
-------
Xfce4-Volumed
Installing in : /usr/local
Using LibNotify : yes
Compiler : gcc
Compiler flags : -O2 -DNDEBUG
Configuration is done OK.
diff --git a/configure.ac b/configure.ac
index 8650a79..32aab35 100644
Following patch fixes the problem:
--- a/configure.ac HAVE_LIBNOTIFY, [test "$HAVE_LIBNOTIFY" = "1"])
+++ b/configure.ac
@@ -57,9 +57,9 @@ AM_CONDITIONAL(
if test "x$enable_debug" = "xyes"; then
- CFLAGS="-g"
+ CFLAGS="$CFLAGS -g"
else
- CFLAGS="-O2 -DNDEBUG"
+ CFLAGS="$CFLAGS -O2 -DNDEBUG"
fi
AC_OUTPUT([