[Cryptech-Commits] [sw/thirdparty/libtfm] branch master updated: change CFLAGS assignment to += for cross-building

git at cryptech.is git at cryptech.is
Sun Nov 1 04:03:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository sw/thirdparty/libtfm.

The following commit(s) were added to refs/heads/master by this push:
       new  e103c58   change CFLAGS assignment to += for cross-building
e103c58 is described below

commit e103c584b95f79f09d7df9c7b689fca841e448a5
Author: Paul Selkirk <paul at psgd.org>
Date:   Thu Oct 29 14:52:41 2015 -0400

    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 */'

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list