From cf76513c8a02aa0e276eaa0a1089c667f5c4e4af Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 2 Oct 2022 05:48:38 +0100 Subject: [PATCH] Fixed a build issue on linux hopefully --- core/makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/makefile b/core/makefile index d0e5adc..97835d8 100644 --- a/core/makefile +++ b/core/makefile @@ -14,7 +14,9 @@ ifeq ($(findstring CYGWIN, $(shell uname)),CYGWIN) LIBLINE =-Wl,--out-implib=$(CORE_OUTDIR)/lib$(OUTNAME).dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive $(OBJ) -Wl,--no-whole-archive OUT=$(CORE_OUTDIR)/$(OUTNAME).dll else ifeq ($(shell uname),Linux) -# No linux for the time being + LIBLINE=-Wl,--out-implib=../$(CORE_OUTDIR)/lib$(OUTNAME).a -Wl,--whole-archive $(OBJ) -Wl,--no-whole-archive + OUT=../$(CORE_OUTDIR)/lib$(OUTNAME).so + CFLAGS += -fPIC else ifeq ($(OS),Windows_NT) LIBLINE =-Wl,--out-implib=$(CORE_OUTDIR)/lib$(OUTNAME).dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive $(OBJ) -Wl,--no-whole-archive OUT=$(CORE_OUTDIR)/$(OUTNAME).dll