From 3ebe373309215120a25df314b9d6e625070091cb Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 16 Sep 2017 16:48:55 +0200 Subject: GNUmakefile: tweaks to make it easier for OpenBSD ports --- GNUmakefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'GNUmakefile') 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) -- cgit 1.4.1