Skip to content

Commit

Permalink
fix makefile
Browse files Browse the repository at this point in the history
-if cc isn't set, gcc will be called
  • Loading branch information
plerros committed Apr 18, 2021
1 parent 827bce4 commit a5d8db2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helsing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ SRC_DIRS ?= .

# Check threads with thread sanitizer -fsanitize=thread

CC := $(shell if [ -z $(CC) ]; then echo $(CC); else echo "gcc"; fi)
CFLAGS := -O2 -Wall -Wextra # compiler flags
LFLAGS := -Wl,--gc-sections # linker flags
LIBS := -pthread $(shell if $(CC) -dM -E -I./configuration.h ./configuration_adv.h | grep -q "CHECKSUM_RESULTS"; then echo "-lcrypto"; fi)
Expand Down Expand Up @@ -36,4 +37,4 @@ clean:

-include $(DEPS)

MKDIR_P ?= mkdir -p
MKDIR_P ?= mkdir -p

0 comments on commit a5d8db2

Please sign in to comment.