diff options
author | cbdev <cb@cbcdn.com> | 2018-03-24 11:01:03 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2018-03-24 11:01:03 +0100 |
commit | 9a70fb468c78706cabf62ede9b5a67b822129d91 (patch) | |
tree | 19dab1391702adfccce460e519ccb0b1640a8e67 /Makefile | |
parent | 37f0119fa2a53c44809043846620e266da92d991 (diff) | |
download | midimonster-9a70fb468c78706cabf62ede9b5a67b822129d91.tar.gz midimonster-9a70fb468c78706cabf62ede9b5a67b822129d91.tar.bz2 midimonster-9a70fb468c78706cabf62ede9b5a67b822129d91.zip |
Work around OSX differences in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |