--- Makefile.orig 2018-07-16 12:17:05 UTC +++ Makefile @@ -8,9 +8,9 @@ WARNFLAGS = -Wall -Wextra -std=gnu99 -pe DEBUGFLAGS = -g CFLAGS += $(OPTFLAGS) $(WARNFLAGS) $(DEBUGFLAGS) OS := $(shell uname) -ifneq ($(OS), Darwin) - LDFLAGS += -Wl,-z,relro -endif +.if ${OS} != Darwin +LDFLAGS += -Wl,-z,relro +.endif