Fix link order in cosmopolitan.a
It turned out that the linker was doing the wrong with the amalgamation library concerning weak stubs. A regression test has been added and new binaries have been uploaded to https://justine.lol/cosmopolitan/ Ideally this should be fixed by building a tool that turns multiple .a files into a single .a file with deduplication. As a workaround for now the cosmopolitan.a build is restructured to not include LIBC_STUBS which meant technical debt needed to be paid off where non-stub interfaces were moved to LIBC_INTRIN and LIBC_NEXGEN32E. Thank @PerfectProductions in #31 for the report!
This commit is contained in:
2
third_party/lemon/lemon.mk
vendored
2
third_party/lemon/lemon.mk
vendored
@@ -7,7 +7,6 @@ THIRD_PARTY_LEMON = o/$(MODE)/third_party/lemon/lemon.com.dbg
|
||||
|
||||
THIRD_PARTY_LEMON_OBJS = \
|
||||
o/$(MODE)/third_party/lemon/lemon.o \
|
||||
o/$(MODE)/third_party/lemon/lemon.c.zip.o \
|
||||
o/$(MODE)/third_party/lemon/lempar.c.txt.zip.o
|
||||
|
||||
THIRD_PARTY_LEMON_COMS = \
|
||||
@@ -23,6 +22,7 @@ THIRD_PARTY_LEMON_DIRECTDEPS = \
|
||||
LIBC_ALG \
|
||||
LIBC_CALLS \
|
||||
LIBC_FMT \
|
||||
LIBC_INTRIN \
|
||||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_RUNTIME \
|
||||
|
||||
Reference in New Issue
Block a user