Add support for compilation on RaspberryPiZero (armv6)

More generally, add support for platforms with atomics, which not really linked to
architecture but compiler features. This may also help on some mips for example.
This commit is contained in:
Philippe Teuwen
2019-06-26 00:12:32 +02:00
parent c6d245b843
commit 0eea50f5a0
3 changed files with 3 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ platform = $(shell uname)
VPATH = ../common ../zlib ../uart
OBJDIR = obj
LDLIBS = -L/opt/local/lib -L/usr/local/lib -lreadline -lpthread -lm
LDLIBS = -L/opt/local/lib -L/usr/local/lib -lreadline -lpthread -lm -Wl,--as-needed -latomic -Wl,--no-as-needed
LUALIB = ../liblua/liblua.a
JANSSONLIBPATH = ./jansson
JANSSONLIB = $(JANSSONLIBPATH)/libjansson.a