From e103c584b95f79f09d7df9c7b689fca841e448a5 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Thu, 29 Oct 2015 14:52:41 -0400 Subject: change CFLAGS assignment to += for cross-building --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 66d7f8a..2824b68 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -37,7 +37,7 @@ REPO := tomsfastmath HDR := ${REPO}/src/headers/tfm.h LIB := ${REPO}/libtfm.a -FLAGS := CFLAGS='-fPIC -Wall -W -Wshadow -Isrc/headers -g3 -DFP_MAX_SIZE="(${BITS}*2+(8*DIGIT_BIT))"' +CFLAGS += -fPIC -Wall -W -Wshadow -Isrc/headers -g3 -DFP_MAX_SIZE="(${BITS}*2+(8*DIGIT_BIT))" TARGETS := $(notdir ${HDR} ${LIB}) @@ -63,7 +63,7 @@ else ${SHA256SUM} --check Checksums endif cd ${REPO}; git clean -dxf - cd ${REPO}; ${MAKE} ${FLAGS} + cd ${REPO}; ${MAKE} CFLAGS='${CFLAGS}' $(notdir ${HDR}): ${HDR} echo >$@.tmp '/* Configure size of largest bignum we want to handle -- see notes in tfm.pdf */' -- cgit v1.2.3