Augustin Cavalier 62f8ef3a7f BuildSetup: Clean up HOST_KERNEL and linking rules.
* Drop all HOST_KERNEL_* definitions, they aren't used or needed
   anymore, it seems.

 * Use --no-as-needed unconditionally; it works under Clang+LLD now.
   (and indeed it's still needed for the "unzip" host tool to
   compile and link properly.)

 * Drop --copy-dt-needed-entries. It was added around the time of
   GCC 10, but it seems that it's not needed anymore, or at least I
   did a minimum build having compiled the host tools without it
   and all seemed to be fine. Furthermore, it seems lld doesn't support
   it, so this fixes the build under FreeBSD and other platforms
   that also don't use ld.bfd same as Darwin/macOS.
2025-02-04 01:13:06 -05:00
..