aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2023-03-07 23:39:53 -0600
committerAlexander M Pickering <alex@cogarr.net>2023-03-07 23:39:53 -0600
commit7e1d1c200406b700cc2318f330f92c5abcefbc52 (patch)
tree0f0409c04127fd4128c000aec3e13cfab9abcd4c
parentc460fbfed3dde98e87d2bb620fa005a17efcf07b (diff)
downloadbrokengine-7e1d1c200406b700cc2318f330f92c5abcefbc52.tar.gz
brokengine-7e1d1c200406b700cc2318f330f92c5abcefbc52.tar.bz2
brokengine-7e1d1c200406b700cc2318f330f92c5abcefbc52.zip
Remove the default static linking
on linux, libGL cannot be statically linked.
-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