From 9a70fb468c78706cabf62ede9b5a67b822129d91 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sat, 24 Mar 2018 11:01:03 +0100 Subject: Work around OSX differences in Makefile --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 60534ba..cda8fae 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,20 @@ OBJS = config.o backend.o plugin.o PLUGINDIR = "\"./backends/\"" +SYSTEM := $(shell uname -s) + CFLAGS ?= -g -Wall #CFLAGS += -DDEBUG midimonster: LDLIBS = -ldl midimonster: CFLAGS += -DPLUGINS=$(PLUGINDIR) + +# Work around strange linker passing convention differences in Linux and OSX +ifeq ($(SYSTEM),Linux) midimonster: LDFLAGS += -Wl,-export-dynamic +endif +ifeq ($(SYSTEM),Darwin) +midimonster: LDFLAGS += -Wl,-export_dynamic +endif all: midimonster backends -- cgit v1.2.3