From e85fde201e988cf9e7cf608be394977f7c045a75 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sat, 26 Sep 2020 18:02:19 +0100 Subject: OpenBSD build fix (#566) * OpenBSD build fix proposal. Mainly the gcc plugin, using one of the egcc/eg++ version available. Needs pthread flag to r/w lock api. * README update --- GNUmakefile.gcc_plugin | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'GNUmakefile.gcc_plugin') diff --git a/GNUmakefile.gcc_plugin b/GNUmakefile.gcc_plugin index 55b79182..e3108511 100644 --- a/GNUmakefile.gcc_plugin +++ b/GNUmakefile.gcc_plugin @@ -75,11 +75,19 @@ ifeq "$(TEST_MMAP)" "1" endif ifneq "$(shell uname -s)" "Haiku" +ifneq "$(shell uname -s)" "OpenBSD" LDFLAGS += -lrt +endif else CFLAGS_SAFE += -DUSEMMAP=1 endif +ifeq "$(shell uname -s)" "OpenBSD" + CC = egcc + CXX = eg++ + PLUGIN_FLAGS += -I/usr/local/include +endif + ifeq "$(shell uname -s)" "SunOS" PLUGIN_FLAGS += -I/usr/include/gmp endif -- cgit 1.4.1