diff options
author | cbdev <cb@cbcdn.com> | 2018-02-24 05:36:02 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2018-02-24 05:36:02 +0100 |
commit | 7e958ddb8aeb439935dbc4aa7c4d99bd40f74c18 (patch) | |
tree | 835d4fe099c683b79e7404cff6a3051d01c2c21e /makefile | |
parent | ab037a3232cb752ea0d3678705091a07b7022448 (diff) | |
download | midimonster-7e958ddb8aeb439935dbc4aa7c4d99bd40f74c18.tar.gz midimonster-7e958ddb8aeb439935dbc4aa7c4d99bd40f74c18.tar.bz2 midimonster-7e958ddb8aeb439935dbc4aa7c4d99bd40f74c18.zip |
Pass linker export flag in a way all compilers understand
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |