commit:7542c55f7a648271e3d2780480995c6a69c37a9e
author:Chip Black
committer:Chip Black
date:Sat Nov 23 22:13:45 2013 -0600
parents:09ed7fdfdaa09307dfc9256a4e7488fa6cec0a7c
Extend CFLAGS out to scrypt
diff --git a/Makefile b/Makefile
line changes: +1/-1
index eb99c15..fe4691f
--- a/Makefile
+++ b/Makefile
@@ -62,5 +62,5 @@ builddeps/scrypt-1.1.6/config.h:
 	cd builddeps/scrypt-1.1.6 && ./configure
 
 builddeps/scrypt.a: builddeps/scrypt-1.1.6/config.h
-	make -C builddeps/scrypt-1.1.6/lib/crypto
+	make -C builddeps/scrypt-1.1.6/lib/crypto CFLAGS="$(CFLAGS)"
 	cp builddeps/scrypt-1.1.6/lib/crypto/scrypt.a builddeps/

diff --git a/builddeps/scrypt-1.1.6/lib/crypto/Makefile b/builddeps/scrypt-1.1.6/lib/crypto/Makefile
line changes: +1/-1
index 3b3d080..05c69c9
--- a/builddeps/scrypt-1.1.6/lib/crypto/Makefile
+++ b/builddeps/scrypt-1.1.6/lib/crypto/Makefile
@@ -9,4 +9,4 @@ scrypt.a: crypto_aesctr.o crypto_scrypt-nosse.o sha256.o
 	ar cru $@ $^
 
 %.o: %.c
-	gcc $(INCLUDES) -c $< -o $@
+	gcc $(INCLUDES) $(CFLAGS) -c $< -o $@