From da97a9d8329caae038af4eb8476e772085258203 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 25 Sep 2012 15:48:23 +0400 Subject: Set CFLAGS and friends --- rules/autotools.mk | 3 +++ rules/common.mk | 1 + 2 files changed, 4 insertions(+) (limited to 'rules') 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) \ -- cgit v1.2.3