2
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/mkproof synced 2024-05-28 09:46:10 +02:00

Merge pull request #277 from kisik21/patch-1

Fix cross-compilation on some Linux systems
This commit is contained in:
Dmitry Khovratovich 2020-04-06 16:55:43 +02:00 committed by GitHub
commit cd5dd35996
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,8 @@ ifdef LINKED_LIB_EXT
LINKED_LIB_SH := lib$(LIB_NAME).$(LINKED_LIB_EXT)
endif
# Some systems don't provide an unprefixed ar when cross-compiling.
AR=ar
LIBRARIES = $(LIB_SH) $(LIB_ST)
HEADERS = include/argon2.h
@ -182,7 +184,7 @@ $(LIB_SH): $(SRC)
$(CC) $(CFLAGS) $(LIB_CFLAGS) $(LDFLAGS) $(SO_LDFLAGS) $^ -o $@
$(LIB_ST): $(OBJ)
ar rcs $@ $^
$(AR) rcs $@ $^
.PHONY: clean
clean: