diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2012-09-25 15:48:23 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2012-09-25 15:48:23 +0400 |
commit | da97a9d8329caae038af4eb8476e772085258203 (patch) | |
tree | d4eebe7185f88c743ea74eb46270c05a3fc74668 /rules | |
parent | b63e7ef9672dabc8c81e2f036c16d6c4e1c3d156 (diff) | |
download | cibs-da97a9d8329caae038af4eb8476e772085258203.tar.gz |
Set CFLAGS and friends
Diffstat (limited to 'rules')
-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) \ |