From 0e8d7e82a44c73e80e9f8049a0ea6ba52116b591 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 4 Apr 2000 09:27:59 +0000 Subject: [PATCH] Add an example of how to tweak CXXFLAGS in a make.conf file. This is in responce to several people breaking their world builds by incorrectly assigning to CXXFLAGS. --- etc/defaults/make.conf | 6 ++++++ share/examples/etc/make.conf | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/etc/defaults/make.conf b/etc/defaults/make.conf index 843e5eb56037..c707985770fd 100644 --- a/etc/defaults/make.conf +++ b/etc/defaults/make.conf @@ -19,6 +19,12 @@ # #CFLAGS= -O -pipe # +# CXXFLAGS controls the compiler settings used when compiling C++ code. +# Note that CXXFLAGS is initially set to the value of CFLAGS. If you wish +# to add to CXXFLAGS value, "+=" must be used rather than "=". Using "=" +# alone will remove the often needed contents of CFLAGS from CXXFLAGS. +# +#CXXFLAGS+= -fmemoize-lookups -fsave-memoized # # Avoid compiling profiled libraries #NOPROFILE= true diff --git a/share/examples/etc/make.conf b/share/examples/etc/make.conf index 843e5eb56037..c707985770fd 100644 --- a/share/examples/etc/make.conf +++ b/share/examples/etc/make.conf @@ -19,6 +19,12 @@ # #CFLAGS= -O -pipe # +# CXXFLAGS controls the compiler settings used when compiling C++ code. +# Note that CXXFLAGS is initially set to the value of CFLAGS. If you wish +# to add to CXXFLAGS value, "+=" must be used rather than "=". Using "=" +# alone will remove the often needed contents of CFLAGS from CXXFLAGS. +# +#CXXFLAGS+= -fmemoize-lookups -fsave-memoized # # Avoid compiling profiled libraries #NOPROFILE= true