allow to override Makefile OS variable

Overriding OS is useful for cross-compiling if build OS and
target OS are different (e.g. build on MacOS for Linux)

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
pull/220/head
Sergey V. Lobanov 2 years ago
parent 3496545358
commit b6bc4f3c74

@ -2,7 +2,7 @@ CFLAGS?=-g -O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2
override CFLAGS:=-Wall -Wno-switch -Wextra $(CFLAGS)
LDLIBS=-lrt
OS := $(shell uname)
OS ?= $(shell uname)
ifeq ($(OS),OpenBSD)
LOCALBASE=/usr/local

Loading…
Cancel
Save