Skip to content

Instantly share code, notes, and snippets.

@sbp
Created August 24, 2015 12:03
Show Gist options
  • Save sbp/fd3da20b8d9838af1a98 to your computer and use it in GitHub Desktop.
Save sbp/fd3da20b8d9838af1a98 to your computer and use it in GitHub Desktop.
Patch for building BLAKE2 b2sum on OS X
$ git diff
diff --git a/b2sum/makefile b/b2sum/makefile
index 806cc72..1171005 100644
--- a/b2sum/makefile
+++ b/b2sum/makefile
@@ -1,5 +1,5 @@
-CC=gcc
-CFLAGS=-std=c99 -O3 -march=native -I../sse -static -fopenmp
+CC=gcc-5
+CFLAGS=-std=c99 -O3 -march=native -I../sse -fopenmp
LIBS=
#FILES=blake2sum.c ../ref/blake2b-ref.c ../ref/blake2s-ref.c ../ref/blake2bp-ref.c ../ref/blake2sp-ref.c
FILES=b2sum.c ../sse/blake2b.c ../sse/blake2s.c ../sse/blake2bp.c ../sse/blake2sp.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment