Extend CFLAGS out to scrypt
authorChip Black <bytex64@bytex64.net>
Sun, 24 Nov 2013 04:13:45 +0000 (22:13 -0600)
committerChip Black <bytex64@bytex64.net>
Sat, 29 Mar 2014 03:56:24 +0000 (22:56 -0500)
Makefile
builddeps/scrypt-1.1.6/lib/crypto/Makefile

index eb99c15..fe4691f 100644 (file)
--- 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/
index 3b3d080..05c69c9 100644 (file)
@@ -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 $@