aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2018-02-24 05:36:02 +0100
committercbdev <cb@cbcdn.com>2018-02-24 05:36:02 +0100
commit7e958ddb8aeb439935dbc4aa7c4d99bd40f74c18 (patch)
tree835d4fe099c683b79e7404cff6a3051d01c2c21e
parentab037a3232cb752ea0d3678705091a07b7022448 (diff)
downloadmidimonster-7e958ddb8aeb439935dbc4aa7c4d99bd40f74c18.tar.gz
midimonster-7e958ddb8aeb439935dbc4aa7c4d99bd40f74c18.tar.bz2
midimonster-7e958ddb8aeb439935dbc4aa7c4d99bd40f74c18.zip
Pass linker export flag in a way all compilers understand
-rw-r--r--makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/makefile b/makefile
index 3ab55a1..d759a7c 100644
--- a/makefile
+++ b/makefile
@@ -9,7 +9,8 @@ CFLAGS ?= -g -Wall
%.so: LDFLAGS += -shared
midimonster: LDLIBS = -ldl
-midimonster: CFLAGS += -rdynamic -DPLUGINS=$(PLUGINDIR)
+midimonster: CFLAGS += -DPLUGINS=$(PLUGINDIR)
+midimonster: LDFLAGS += -Wl,-export-dynamic
midi.so: LDLIBS = -lasound
evdev.so: CFLAGS += $(shell pkg-config --cflags libevdev)
evdev.so: LDLIBS = $(shell pkg-config --libs libevdev)
@@ -20,7 +21,7 @@ evdev.so: LDLIBS = $(shell pkg-config --libs libevdev)
all: midimonster $(BACKENDS)
-midimonster: midimonster.h $(OBJS)
+midimonster: midimonster.c $(OBJS)
clean:
$(RM) midimonster