BUILD: compiler: systematically set USE_OBSOLETE_LINKER with TCC
authorWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 19:37:06 +0000 (21:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 19:37:06 +0000 (21:37 +0200)
commitb298882acccc73a6d803d54da3dda484cbb35c02
treec01b1ee0236076f05b731ff6fa24fd3fcd34dd25
parenteced142aa884d853bc72dac449cdc1ae5fc94e47
BUILD: compiler: systematically set USE_OBSOLETE_LINKER with TCC

TCC silently ignores the weak and section attributes, which ruins the
initcalls. Technically we're exactly in the same situation as with an
obsolete linker. Let's just automatically set the flag if TCC is
detected, this avoids surprises where the program compiles but does
not start.

No backport is needed.
include/haproxy/compiler.h