2010-11-11 15:13:11 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2010-11-11 15:13:11 +00:00
|
|
|
|
2016-09-03 21:41:29 +00:00
|
|
|
PACKAGE= lib${LIB}
|
|
|
|
LIB= compiler_rt
|
2010-11-11 15:13:11 +00:00
|
|
|
NO_PIC=
|
2016-09-03 21:41:29 +00:00
|
|
|
WARNS?= 2
|
|
|
|
|
|
|
|
CFLAGS+= ${PICFLAG}
|
|
|
|
CFLAGS+= -fvisibility=hidden
|
|
|
|
CFLAGS+= -DVISIBILITY_HIDDEN
|
|
|
|
CFLAGS+= -I${SRCTOP}/contrib/libcxxrt
|
|
|
|
|
2016-12-02 20:17:41 +00:00
|
|
|
.if ${COMPILER_TYPE} == "clang"
|
|
|
|
CWARNFLAGS.gcc_personality_v0.c+= -Wno-typedef-redefinition
|
|
|
|
.endif
|
|
|
|
|
2016-09-27 18:55:45 +00:00
|
|
|
.include "Makefile.inc"
|
2013-01-19 02:28:44 +00:00
|
|
|
|
2013-04-20 14:44:28 +00:00
|
|
|
.if ${MK_INSTALLLIB} != "no"
|
2016-09-03 21:41:29 +00:00
|
|
|
SYMLINKS+= libcompiler_rt.a ${LIBDIR}/libgcc.a
|
2013-04-20 14:44:28 +00:00
|
|
|
.endif
|
|
|
|
.if ${MK_PROFILE} != "no"
|
2016-09-03 21:41:29 +00:00
|
|
|
SYMLINKS+= libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
|
2010-11-11 15:13:11 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|