From 06f38d33802857765efca0a16e7c8eca3ccc0777 Mon Sep 17 00:00:00 2001 From: charles Date: Fri, 15 Feb 2019 19:02:14 -0500 Subject: [PATCH] Update makefile for OpenBSD --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6e232ea1..e845c964 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 1)\"" CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -O2 -fvisibility=hidden \ -DJANET_BUILD=$(JANET_BUILD) -CLIBS=-lm -ldl +CLIBS=-lm JANET_TARGET=build/janet JANET_LIBRARY=build/libjanet.so JANET_PATH?=/usr/local/lib/janet @@ -42,9 +42,12 @@ LDCONFIG:=ldconfig ifeq ($(UNAME), Darwin) # Add other macos/clang flags LDCONFIG:= + CLIBS:=$(CLIBS) -ldl +else ifeq ($(UNAME), OpenBSD) + # pass ... else CFLAGS:=$(CFLAGS) -rdynamic - CLIBS:=$(CLIBS) -lrt + CLIBS:=$(CLIBS) -lrt -ldl endif $(shell mkdir -p build/core build/mainclient build/webclient build/boot)