]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid adding duplicates to SRCS/OBJS/SOBJS/POBJS
authorarichardson <arichardson@FreeBSD.org>
Mon, 24 Aug 2020 09:20:33 +0000 (09:20 +0000)
committerarichardson <arichardson@FreeBSD.org>
Mon, 24 Aug 2020 09:20:33 +0000 (09:20 +0000)
commit0a47ac235dcca2846cd65a9f9e08b78cfbf4df54
tree0bc86d76d7ab1ac4e0cdaf3ac2c2d8444285d164
parentc798db4b25432936bd0f8da0b04ba4479bf9c698
Avoid adding duplicates to SRCS/OBJS/SOBJS/POBJS

This is a change in preparation for stopping to use lorder.sh (D26044) and
instead assume that we have a linker newer than ~1990. Without lorder.sh
duplicates end up being passed to the linker when building .so files and this
can result in duplicate symbol definition errors.

There is one minor change: libcompiler_rt.a will no longer provide
gcc_personality_v0 and instead we now only have it in libgcc_eh.a/libgcc_s.so.
This matches GCC's behaviour.

Reviewed By: emaste, cem
Differential Revision: https://reviews.freebsd.org/D26042
lib/libcompiler_rt/Makefile.inc
lib/libgcc_eh/Makefile
lib/libgcc_eh/Makefile.inc
lib/libprocstat/Makefile
stand/userboot/userboot/Makefile