aboutsummaryrefslogtreecommitdiff
path: root/Makefile.shared
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.shared')
-rw-r--r--Makefile.shared6
1 files 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