GNUmakefile: tweaks to make it easier for OpenBSD ports

pull/79/head
Leah Neukirchen 7 years ago
parent a674be611c
commit 3ebe373309

@ -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)

Loading…
Cancel
Save