From 7e958ddb8aeb439935dbc4aa7c4d99bd40f74c18 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sat, 24 Feb 2018 05:36:02 +0100 Subject: Pass linker export flag in a way all compilers understand --- makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'makefile') 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 -- cgit v1.2.3