summaryrefslogtreecommitdiffstats
path: root/src/build/mkrules/cflags.env.mk
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2013-05-07 17:17:37 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-05-15 09:32:41 -0500
commitc24b25d1a269c4f814b634e49d81a8bb3772f0e7 (patch)
treeabdf99c327a995da31ca0f2ba0ce7ab24daa9135 /src/build/mkrules/cflags.env.mk
parent3cd5ed99be7d51b181c65f35c820abf3fc6f2c86 (diff)
downloadtalos-hostboot-c24b25d1a269c4f814b634e49d81a8bb3772f0e7.tar.gz
talos-hostboot-c24b25d1a269c4f814b634e49d81a8bb3772f0e7.zip
Reduce the footprint of builds.
Change-Id: I2091409dc81716d064ac1e057573b6b2e02168ad Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4409 Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/mkrules/cflags.env.mk')
-rw-r--r--src/build/mkrules/cflags.env.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/build/mkrules/cflags.env.mk b/src/build/mkrules/cflags.env.mk
index 852464c68..a182d2946 100644
--- a/src/build/mkrules/cflags.env.mk
+++ b/src/build/mkrules/cflags.env.mk
@@ -39,6 +39,10 @@ ASMFLAGS += $(COMMONFLAGS) -mcpu=power7
CXXFLAGS += $(CFLAGS) -nostdinc++ -fno-rtti -fno-exceptions -Wall
LDFLAGS += --nostdlib --sort-common $(COMMONFLAGS)
+ifdef BUILD_MINIMAL
+LDFLAGS += --strip-debug
+endif
+
INCFLAGS = $(addprefix -I, $(INCDIR) )
ASMINCFLAGS = $(addprefix $(lastword -Wa,-I), $(INCDIR))
OpenPOWER on IntegriCloud