diff options
-rw-r--r-- | GNUmakefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile index b8d70d4..6d96d60 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,11 +1,13 @@ -CFLAGS+=-g -O2 -Wall -Wno-switch -Wextra -fstack-protector-strong -D_FORTIFY_SOURCE=2 +CFLAGS=-g -O2 +override CFLAGS:=-Wall -Wno-switch -Wextra -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(CFLAGS) LDLIBS=-lrt OS := $(shell uname) ifeq ($(OS),OpenBSD) -CFLAGS+=-I/usr/local/include -pthread -LDLIBS=-L/usr/local/lib -liconv -pthread +LOCALBASE=/usr/local +CFLAGS+=-I$(LOCALBASE)/include -pthread +LDLIBS=-L$(LOCALBASE)/lib -liconv -pthread endif ifeq ($(OS),Darwin) |