mirror of
https://git.freebsd.org/ports.git
synced 2025-05-01 19:16:39 -04:00
Lua C binding for the Argon2 password hashing function. Compatible with Lua 5.x and LuaJIT. PR: 268039 Reported by: Manuel Wiesinger <manuel at mmap.at>
22 lines
606 B
Text
22 lines
606 B
Text
--- Makefile.orig 2018-06-11 02:10:23 UTC
|
|
+++ Makefile
|
|
@@ -1,8 +1,7 @@
|
|
LIB_NAME = argon2
|
|
|
|
-CC ?= gcc
|
|
-LDFLAGS ?= -shared
|
|
-CFLAGS ?= -O2 -fPIC -ansi -Wall -Werror -Wpedantic
|
|
+LDFLAGS += -shared
|
|
+CFLAGS += -fPIC -std=c11 -Wall -Wpedantic
|
|
|
|
PREFIX ?= /usr/local
|
|
ARGON2_INCDIR ?= $(PREFIX)/include
|
|
@@ -17,7 +16,7 @@ BUILD_LDFLAGS = -L$(ARGON2_LIBDIR) -largon2
|
|
all: $(LIB_NAME).so
|
|
|
|
$(LIB_NAME).so: $(LIB_NAME).o
|
|
- $(CC) $(LDFLAGS) -o $@ $< $(BUILD_LDFLAGS)
|
|
+ $(CC) $(LDFLAGS) -o $@ $(LIB_NAME).o $(BUILD_LDFLAGS)
|
|
|
|
$(LIB_NAME).o: src/$(LIB_NAME).c
|
|
$(CC) $(CFLAGS) -c $< -o $@ $(BUILD_CFLAGS)
|