diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2023-03-07 23:39:53 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2023-03-07 23:39:53 -0600 |
| commit | 7e1d1c200406b700cc2318f330f92c5abcefbc52 (patch) | |
| tree | 0f0409c04127fd4128c000aec3e13cfab9abcd4c /Makefile.shared | |
| parent | c460fbfed3dde98e87d2bb620fa005a17efcf07b (diff) | |
| download | brokengine-7e1d1c200406b700cc2318f330f92c5abcefbc52.tar.gz brokengine-7e1d1c200406b700cc2318f330f92c5abcefbc52.tar.bz2 brokengine-7e1d1c200406b700cc2318f330f92c5abcefbc52.zip | |
Remove the default static linking
on linux, libGL cannot be statically linked.
Diffstat (limited to 'Makefile.shared')
| -rw-r--r-- | Makefile.shared | 6 |
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 |
