]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: ist: use the literal declaration for ist_lc/ist_uc under TCC
authorWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 19:31:21 +0000 (21:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 19:33:34 +0000 (21:33 +0200)
commiteced142aa884d853bc72dac449cdc1ae5fc94e47
tree1e0f79d373c920fcd6c3b6f44190e9e0a82e85d5
parent4e8720ab783504ec868cf8ca05388ba0e88a7193
BUILD: ist: use the literal declaration for ist_lc/ist_uc under TCC

TCC doesn't knoow about __attribute__((weak)), it silently ignores it.
We could add a "static" modifier there in this case but we already have
an alternate portable mode that is based on a slightly larger literal
for obsolete linkers (and non-ELF systems) which choke on weak. Let's
just add the test for tcc there and use it in this case.

No backport is needed.
include/import/ist.h