From d451c384e7ec0ccd4e7d8f180f23a65ba3267c06 Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Tue, 25 Oct 2011 10:43:17 +1300 Subject: [PATCH] Fix linking on OpenBSD (-ldl is not required). --- Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 1315ef9..3e44646 100644 --- a/Makefile +++ b/Makefile @@ -49,13 +49,19 @@ else endif ifeq ($(OS),Windows_NT) - MSPDEBUG_CC = gcc - OS_LIBS = -lws2_32 -lregex - BINARY = mspdebug.exe + MSPDEBUG_CC = gcc + BINARY = mspdebug.exe + + OS_LIBS = -lws2_32 -lregex else - MSPDEBUG_CC = $(CC) + MSPDEBUG_CC = $(CC) + BINARY = mspdebug + + ifeq ($(UNAME),OpenBSD) + OS_LIBS = + else OS_LIBS = -ldl - BINARY = mspdebug + endif endif INCLUDES = -I. -Isimio -Iformats -Idrivers -Iutil -Iui