diff options
author | Paul Selkirk <paul@psgd.org> | 2015-10-29 14:52:41 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2015-10-29 14:52:41 -0400 |
commit | e103c584b95f79f09d7df9c7b689fca841e448a5 (patch) | |
tree | 0ab3ad19b71a2159a0fcb90124b1be8a37180688 | |
parent | e2eab1093a134e5a655d1ccad23a31b2b8252c66 (diff) |
change CFLAGS assignment to += for cross-building
-rw-r--r-- | GNUmakefile | 4 |
1 files 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 */' |