freebsd-dev/lib/libgcc_eh/Makefile
Alex Richardson 0b862b0399 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
2020-08-24 09:20:33 +00:00

21 lines
290 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
PACKAGE= clibs
LIB= gcc_eh
NO_PIC=
MK_SSP= no
WARNS?= 2
SRCS_EXC+= int_util.c
.include "Makefile.inc"
.if ${.MAKE.LEVEL} > 0
# avoid circular dependencies
GENDIRDEPS_FILTER+= Nlib/msun
CFLAGS+= -I${SRCTOP}/lib/msun/src
.endif
.include <bsd.lib.mk>