aboutsummaryrefslogtreecommitdiffstats
path: root/macros
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-02-05 19:42:32 +0800
committerMartin Baulig <martin@src.gnome.org>1999-02-05 19:42:32 +0800
commit5493a25691a575f4ed8c0147bb4139e320bee258 (patch)
tree57aabb700b76349ed4fb000bd4e75132d37ba1f0 /macros
parentebcc8ed7c228e11339ea89e6909f12fed83f839e (diff)
downloadgsoc2013-evolution-5493a25691a575f4ed8c0147bb4139e320bee258.tar.gz
gsoc2013-evolution-5493a25691a575f4ed8c0147bb4139e320bee258.tar.zst
gsoc2013-evolution-5493a25691a575f4ed8c0147bb4139e320bee258.zip
Don't add warning and compiler flags to the CFLAGS and CXXFLAGS when
1999-02-05 Martin Baulig <martin@home-of-linux.org> * compiler-flags.m4: Don't add warning and compiler flags to the CFLAGS and CXXFLAGS when they're cached. This fixes the problem that CFLAGS and CXXFLAGS get longer and longer each time you run a `config.status --recheck'. svn path=/trunk/; revision=646
Diffstat (limited to 'macros')
-rw-r--r--macros/ChangeLog7
-rw-r--r--macros/compiler-flags.m412
2 files changed, 17 insertions, 2 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index 017dbdd565..8dd494d7d8 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,10 @@
+1999-02-05 Martin Baulig <martin@home-of-linux.org>
+
+ * compiler-flags.m4: Don't add warning and compiler flags to
+ the CFLAGS and CXXFLAGS when they're cached. This fixes the
+ problem that CFLAGS and CXXFLAGS get longer and longer each
+ time you run a `config.status --recheck'.
+
1999-02-04 Martin Baulig <martin@home-of-linux.org>
* aclocal-include.m4 (INSIDE_GNOME_COMMON): New automake
diff --git a/macros/compiler-flags.m4 b/macros/compiler-flags.m4
index ae85b26f22..fb5d1d25e2 100644
--- a/macros/compiler-flags.m4
+++ b/macros/compiler-flags.m4
@@ -43,7 +43,11 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
fi
fi
AC_MSG_RESULT($complCFLAGS)
- CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
+ if test "x$cflags_set" != "xyes"; then
+ CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
+ cflags_set=yes
+ AC_SUBST(cflags_set)
+ fi
])
dnl For C++, do basically the same thing.
@@ -90,5 +94,9 @@ AC_DEFUN([GNOME_CXX_WARNINGS],[
fi
fi
AC_MSG_RESULT($complCXXFLAGS)
- CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
+ if test "x$cxxflags_set" != "xyes"; then
+ CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
+ cxxflags_set=yes
+ AC_SUBST(cxxflags_set)
+ fi
])
pan>/+1 * Autotools update. Read ports/UPDATING 20100915 for details.ade2010-09-161-2/+2 * Disable the GTK frontend by default.hrs2010-08-212-7/+13 * Use graphics/jbig2dec for libjbig2dec instead of the bundled one.hrs2010-08-032-13/+3 * - Fix compile errors when vgalib and lvga256 drivers are enabled.hrs2010-08-026-12/+99 * - Introduce a new USE_XZ knob that handles lzma/xz compressed distfilespav2010-06-042-3/+4 * Disable the cups driver when either WITHOUT_CUPS=true orhrs2010-05-262-7/+19 * - Make the driver selection stricter and redefine DEVICE_DEVSn in thehrs2010-05-255-135/+296 * Fix "-sDEVICE=ijs -sIjsServer=hpijs" issue.hrs2010-04-112-2/+3 * * Update to 8.71.[1] Changes include:hrs2010-04-036-17/+62 * - update to 1.4.1dinoex2010-03-281-2/+2 * - update to jpeg-8dinoex2010-02-051-1/+2 * Fix build when WITH_FT_BRIDGE=1.hrs2009-12-211-6/+6 * Update to 8.70. Changes include:hrs2009-12-208-1040/+35 * Fix A3 paper handling in the LIPS (Canon LBP series) driver.hrs2009-10-273-1/+36 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-1/+1 * - update to jpeg7dinoex2009-07-181-2/+2 * Fix LIB_DEPENDS line again.hrs2009-06-021-1/+1 * Fix LIB_DEPENDS line.hrs2009-06-021-2/+2 * Allow building ghostscript8 without CUPS support. The default iskeramida2009-06-021-3/+10 * japanese/font-std, chinese/font-std, and dependency fixups duehrs2009-05-313-18/+20 * - Re-enable cups supportgahr2009-05-181-3/+3 * - Fix build by disabling CUPS support (cyclic dependency)gahr2009-05-151-0/+1 * Fix multiple integer overflows and lack of boundary check foundhrs2009-04-202-1/+990 * - Mark MAKE_JOBS_UNSAFEpav2009-03-301-0/+1