diff options
-rw-r--r-- | rules/autotools.mk | 3 | ||||
-rw-r--r-- | rules/common.mk | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/rules/autotools.mk b/rules/autotools.mk index 108cdca..1975ff4 100644 --- a/rules/autotools.mk +++ b/rules/autotools.mk @@ -31,6 +31,9 @@ configure := $(sourcedir)/configure configure-env = \ CC="$(CC)" \ CXX="$(CXX)" \ + CFLAGS="$(CFLAGS)" \ + CXXFLAGS="$(CXXFLAGS)" \ + CPPFLAGS="$(CPPFLAGS)" \ configure-options = \ diff --git a/rules/common.mk b/rules/common.mk index 4e0c970..a517f08 100644 --- a/rules/common.mk +++ b/rules/common.mk @@ -51,6 +51,7 @@ CXX.64 = g++ -m64 export PATH := \ /usr/gcc/4.4/bin:/usr/gcc/4.3/bin:/usr/gnu/bin:/usr/sbin:/usr/bin:/sbin +export CFLAGS = -O2 # Define LOCAL_MIRROR in environment, e. g. in ~/.bash_profile: mirrors := $(LOCAL_MIRROR) \ |