Skip to content

Commit

Permalink
Small fix in Makefile of kcdsa.
Browse files Browse the repository at this point in the history
  • Loading branch information
rben-dev committed Jun 6, 2023
1 parent 390c6c6 commit ce8b216
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/examples/sig/kcdsa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ ifeq ($(WITH_DYNAMIC_LIBS),1)
all: kcdsa_dyn
endif

# NOTE: avoid a false positive detecting a -Werror=stringop-overflow in kcdsa.c with Wno-error
BIN_CFLAGS += -Wno-error

libhash:
# Compile the hashes
$(VERBOSE_MAKE)cd ../../hash && EXTRA_CFLAGS="$(CFLAGS)" make libhash.a

kcdsa: libhash
# NOTE: remove a false positive detecting a -Werror=stringop-overflow in kcdsa.c with a -Wno-error
$(VERBOSE_MAKE)$(CROSS_COMPILE)$(CC) $(BIN_CFLAGS) -Wno-error -DKCDSA kcdsa.c ../dsa/dsa.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(BIN_LDFLAGS) ../../hash/libhash.a $(LIBSIGN) -o kcdsa
$(VERBOSE_MAKE)$(CROSS_COMPILE)$(CC) $(BIN_CFLAGS) -DKCDSA kcdsa.c ../dsa/dsa.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(BIN_LDFLAGS) ../../hash/libhash.a $(LIBSIGN) -o kcdsa

# If the user asked for dynamic libraries, compile versions of our binaries against them
ifeq ($(WITH_DYNAMIC_LIBS),1)
Expand Down

0 comments on commit ce8b216

Please sign in to comment.