lua-arc4random

Cryptographically secure PRNG for Lua
Log | Files | Refs

commit 979e53b4997f4edb64ea507a68c332667728dc46
parent 53ea4951a380d7e7c95f8f99db8410fcce94c18f
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu, 24 Dec 2015 15:35:26 +0000

Simplify Makefile.mess a bit

Diffstat:
Makefile.mess | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/Makefile.mess b/Makefile.mess @@ -6,9 +6,13 @@ endif # OS detection uname := $(shell uname -s) -ifeq ($(uname),OpenBSD) +ifneq ($(uname),Darwin) LDFLAGS += -shared else + LDFLAGS += -bundle -undefined dynamic_lookup +endif + +ifneq ($(uname),OpenBSD) # This is more or less what libressl does # See http://openbsd.cs.toronto.edu/cgi-bin/cvsweb/src/lib/libssl/src/crypto/mem_clr.c?rev=1.4&content-type=text/x-cvsweb-markup CFLAGS += -DOPENSSL_cleanse=explicit_bzero @@ -16,12 +20,6 @@ else # GCC whines without this. Assume everyone has strndup anyway CFLAGS += -DHAVE_STRNDUP - ifneq ($(uname),Darwin) - LDFLAGS += -shared - else - LDFLAGS += -bundle -undefined dynamic_lookup - endif - CFLAGS += -Iinclude SRCS += compat/arc4random/arc4random.c