Fix amalgamated release objects for older distros

We now pass -Wa,--nocompress-debug-sections to GCC so it won't use ELF
compression, since that causes "unable to initialize decompress status
for section .debug_aranges" when linked with past releases of binutils

Please note: this issue only impacts users who download cosmopolitan.a
from the website. Building from source isn't impacted, since we vendor
GCC 9.2.0 and Binutils 2.32 static binaries in the third_party folder.

Thanks @vshymanskyy for reporting this!
See #32
This commit is contained in:
Justine Tunney 2021-01-27 16:14:40 -08:00
parent 45b72485ad
commit de703b182c

View file

@ -171,7 +171,8 @@ DEFAULT_CXXFLAGS = \
DEFAULT_ASFLAGS = \ DEFAULT_ASFLAGS = \
-W \ -W \
-I. \ -I. \
--noexecstack --noexecstack \
--nocompress-debug-sections
DEFAULT_LDFLAGS = \ DEFAULT_LDFLAGS = \
-static \ -static \