From 91d89816391a341cd48ab932ccc864f38f7220c4 Mon Sep 17 00:00:00 2001 From: Stefan Eilemann Date: Wed, 26 Nov 2014 15:48:03 +0100 Subject: [PATCH] Tweak Makefile for building on BG/Q --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1862d2bf9..0b12d90b0 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,16 @@ #----------------------------------------------- +CFLAGS += ${EXTRA_CFLAGS} +CXXFLAGS += ${EXTRA_CXXFLAGS} +LDFLAGS += $(EXTRA_LDFLAGS) +MACHINE ?= $(shell uname -m) + ifneq ($(MAKECMDGOALS),dbg) -OPT += -O2 -fno-omit-frame-pointer -momit-leaf-frame-pointer +OPT += -O2 -fno-omit-frame-pointer +ifneq ($(MACHINE),ppc64) # ppc64 doesn't support -momit-leaf-frame-pointer +OPT += -momit-leaf-frame-pointer +endif else # intentionally left blank endif