[nemiver] Support compiling C programs
- From: Dodji Seketeli <dodji src gnome org>
- To: svn-commits-list gnome org
- Subject: [nemiver] Support compiling C programs
- Date: Sat, 18 Jul 2009 15:43:09 +0000 (UTC)
commit 156a95571bcc69f53ef97463c850873f7d80b6c2
Author: Dodji Seketeli <dodji redhat com>
Date: Sat Jul 18 16:47:37 2009 +0200
Support compiling C programs
* configure.ac: support compiling C programs with $CC.
configure.ac | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7f5e9f3..77f5f3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -355,14 +355,19 @@ dnl ***************************
dnl Set Dodji devel environment.
dnl ***************************
if test "x$NEMIVER_DEVEL" = "xon" ; then
- CFLAGS=$DODJI_FLAGS
- CXXFLAGS="-Wall -g -Wextra -Wno-deprecated -fuse-cxa-atexit $REQUIRED_FLAGS"
+ DODJI_CFLAGS="-Wall -g -Wextra -Wno-deprecated $REQUIRED_FLAGS"
if test x$NEMIVER_ALLOW_WARNINGS != xon ; then
- CXXFLAGS="$CXXFLAGS -Werror"
+ DODJI_CFLAGS="$DODJI_CFLAGS -Werror"
fi
+ DODJI_CXXFLAGS="$DODJI_CFLAGS -fuse-cxa-atexit"
ENABLE_DEBUG=yes
+ CXXFLAGS="$DODJI_CXXFLAGS"
+ CFLAGS="$DODJI_CFLAGS"
else
- CXXFLAGS="$CXXFLAGS -fuse-cxa-atexit $REQUIRED_FLAGS"
+ DODJI_CFLAGS="$REQUIRED_FLAGS"
+ DODJI_CXXFLAGS="$DODJI_CFAGS -fuse-cxa-atexit"
+ CFLAGS="$CFLAGS $DODJI_CFLAGS"
+ CXXFLAGS="$CXXFLAGS $DODJI_CXXFLAGS"
fi
if test x$ENABLE_DEBUG != x ; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]