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
|
|
|
|
|
2017-03-21 21:07:37 +00:00
|
|
|
# gcc has incompatible internal declarations for __divtc3 and __multc3, but has
|
|
|
|
# no option to silence its warning, so make warnings non-fatal.
|
|
|
|
NO_WERROR.gcc=
|
|
|
|
|
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>
|