From 7e1d1c200406b700cc2318f330f92c5abcefbc52 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Tue, 7 Mar 2023 23:39:53 -0600 Subject: Remove the default static linking on linux, libGL cannot be statically linked. --- Makefile.shared | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.shared b/Makefile.shared index 538dc74..f98ead9 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -68,6 +68,8 @@ ifeq ($(DEBUG), true) CFLAGS += -g -shared -Wall -Werror -fPIC LDFLAGS += #-shared #The -shared flags seemes to break the binary whever there's a windows update. else - CFLAGS += -static -O3 -fpermissive - LDFLAGS += -static + # TODO: On linux we can't statically link libGL in a meaningful way, + # so what now? + CFLAGS += -O3 -fpermissive + LDFLAGS += # and -static on linux prevents dynamic linking of things like libGL which must be dynamic endif -- cgit v1.2.3-70-g09d2