From 03673975d830ed3eda81da14a63004d05047a424 Mon Sep 17 00:00:00 2001 From: Astie Teddy Date: Sat, 5 Sep 2020 15:47:37 +0200 Subject: [PATCH] Compiler selection fix and .so Linux build improvements. (but it's still not building on Linux my computer) --- makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 4fab86f..193ce99 100644 --- a/makefile +++ b/makefile @@ -30,10 +30,10 @@ all: raylua_s raylua_e luajit raylib $(CC) -c -o $@ $< $(CFLAGS) luajit: - $(MAKE) -C luajit amalg BUILDMODE=static MACOSX_DEPLOYMENT_TARGET=10.13 + $(MAKE) -C luajit amalg CC=$(CC) BUILDMODE=static MACOSX_DEPLOYMENT_TARGET=10.13 raylib: - $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" -C raylib/src + $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" -C raylib/src raylua_s: src/raylua_s.o $(EXTERNAL_FILES) libraylua.a $(CC) -o $@ $^ $(LDFLAGS) luajit/src/libluajit.a @@ -52,7 +52,7 @@ raylua.dll: src/raylua.o $(CC) -shared -fPIE -o $@ $^ $(LDFLAGS) -llua5.1 raylua.so: src/raylua.o - $(CC) -shared -fPIE -o $@ $^ $(LDFLAGS) + $(CC) -shared -fPIE -o $@ $^ $(LDFLAGS) -llua5.1 src/raylua.o: luajit raylib src/autogen/boot.c src/autogen/bind.c