]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid adding duplicates to SRCS/OBJS/SOBJS/POBJS
authorAlex Richardson <arichardson@FreeBSD.org>
Mon, 24 Aug 2020 09:20:33 +0000 (09:20 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Mon, 24 Aug 2020 09:20:33 +0000 (09:20 +0000)
commit0b862b03998a292a18bcc7f9ac5b05c0303c5de3
tree0bc86d76d7ab1ac4e0cdaf3ac2c2d8444285d164
parent06e20d1babecec1f45ffda513f55a8db5f1c0f56
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