lua-bcrypt

Secure password hashing for Lua
Log | Files | Refs

commit 98b03e3aae6db9b613545e1e02a0349d8f3dcfa9
parent 0f28adcb880756c46ee6d5c3dd1e88e38746c6c5
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu, 11 Dec 2014 10:27:36 +0000

Don't use -shared on OSX. #6

Diffstat:
Makefile | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,7 +3,7 @@ OBJECTS = $(patsubst %.c,%.o,$(SOURCES)) TARGET = bcrypt.so -CFLAGS = -O2 -shared -fPIC -std=c99 -D_GNU_SOURCE -Wall -Wextra -Wno-nonnull -Wwrite-strings -Wformat=2 -DNDEBUG -Ilib/bcrypt +CFLAGS = -O2 -fPIC -std=c99 -D_GNU_SOURCE -Wall -Wextra -Wno-nonnull -Wwrite-strings -Wformat=2 -DNDEBUG -Ilib/bcrypt BCRYPT_OBJECTS = lib/bcrypt/crypt_blowfish.o lib/bcrypt/x86.o lib/bcrypt/crypt_gensalt.o lib/bcrypt/wrapper.o @@ -11,10 +11,10 @@ ifdef LUA_INCDIR CFLAGS += -I$(LUA_INCDIR) endif -ifneq ($(OS),Windows_NT) - ifeq ($(shell uname -s),Darwin) - CFLAGS += -bundle -undefined dynamic_lookup - endif +ifeq ($(shell uname -s),Darwin) + CFLAGS += -bundle -undefined dynamic_lookup +else + CFLAGS += -shared endif .PHONY: debug test clean