diff options
author | cbdev <cb@cbcdn.com> | 2019-12-03 23:04:45 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-12-03 23:04:45 +0100 |
commit | 4a86ad5ac36c54de1bff61d00b80734da226e37e (patch) | |
tree | 0c9844035fa4f1aa80bf8e5cc8e6fe91811ba7d7 | |
parent | a0831a2b970404eaa9b80ff97ab46ee759131414 (diff) | |
download | midimonster-4a86ad5ac36c54de1bff61d00b80734da226e37e.tar.gz midimonster-4a86ad5ac36c54de1bff61d00b80734da226e37e.tar.bz2 midimonster-4a86ad5ac36c54de1bff61d00b80734da226e37e.zip |
Fix the build on OSX once again
-rw-r--r-- | backends/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/Makefile b/backends/Makefile index 4e37ca4..75ce74b 100644 --- a/backends/Makefile +++ b/backends/Makefile @@ -47,8 +47,10 @@ evdev.so: CFLAGS += $(shell pkg-config --cflags libevdev || echo "-DBUILD_ERROR= evdev.so: LDLIBS = $(shell pkg-config --libs libevdev || echo "-DBUILD_ERROR=\"Missing pkg-config data for libevdev\"") ola.so: LDLIBS = -lola ola.so: CPPFLAGS += -Wno-write-strings -lua.so: CFLAGS += $(shell pkg-config --cflags lua53 || echo "-DBUILD_ERROR=\"Missing pkg-config data for lua53\"") -lua.so: LDLIBS += $(shell pkg-config --libs lua53 || echo "-DBUILD_ERROR=\"Missing pkg-config data for lua53\"") +# The pkg-config name for liblua5.3 is subject to discussion. I prefer 'lua5.3' (which works on Debian and OSX), +# but Arch requires 'lua53' which works on Debian, too, but breaks on OSX. +lua.so: CFLAGS += $(shell pkg-config --cflags lua53 || pkg-config --cflags lua5.3 || echo "-DBUILD_ERROR=\"Missing pkg-config data for lua53\"") +lua.so: LDLIBS += $(shell pkg-config --libs lua53 || pkg-config --cflags lua5.3 || echo "-DBUILD_ERROR=\"Missing pkg-config data for lua53\"") %.so :: %.c %.h $(BACKEND_LIB) $(CC) $(CFLAGS) $(LDLIBS) $< $(ADDITIONAL_OBJS) -o $@ $(LDFLAGS) |