Skip to content

Commit

Permalink
crypto/libsodium: fix libsodium compilation problem
Browse files Browse the repository at this point in the history
(1)fix unable to pull source code
(2)fix compile warning
Signed-off-by: makejian <[email protected]>
  • Loading branch information
makejian committed Aug 17, 2023
1 parent 323c16a commit 9c9b4f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crypto/libsodium/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
include $(APPDIR)/Make.defs

LIBSODIUM_VERSION = $(patsubst "%",%,$(strip $(CONFIG_LIBSODIUM_VERSION)))
LIBSODIUM_URL ?= "https://github.com/jedisct1/libsodium/archive/refs/tags/$(LIBSODIUM_VERSION).zip"
LIBSODIUM_URL ?= "https://github.com/jedisct1/libsodium/archive"

LIBSODIUM_ZIP = $(LIBSODIUM_VERSION).zip

Expand All @@ -33,7 +33,8 @@ LIBSODIUM_UNPACKTESTDIR = $(LIBSODIUM_UNPACKNAME)$(DELIM)test$(DELIM)default

CSRCS += $(shell find $(LIBSODIUM_UNPACKLIBDIR) -name "*.c")
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/crypto/libsodium/libsodium/src/libsodium/include/sodium
CFLAGS += -Wno-unused-function -Wno-undef -Wno-unused-variable -Wno-deprecated-declarations
CFLAGS += -Wno-unused-function -Wno-undef -Wno-unused-variable -Wno-deprecated-declarations \
-Wno-shadow

ifneq ($(CONFIG_LIBSODIUM_TEST),)
MODULE = $(CONFIG_LIBSODIUM_TEST)
Expand Down Expand Up @@ -61,7 +62,7 @@ ifeq ($(wildcard $(LIBSODIUM_UNPACKNAME)/.git),)
context:: $(LIBSODIUM_UNPACKNAME)

distclean::
$(Q) rm -rf $(LIBSODIUM_UNPACKNAME)
$(Q) rm -rf $(LIBSODIUM_UNPACKNAME)
endif

include $(APPDIR)/Application.mk

0 comments on commit 9c9b4f2

Please sign in to comment.