Changeset View
Changeset View
Standalone View
Standalone View
lib/libcompiler_rt/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
PACKAGE= lib${LIB} | PACKAGE= lib${LIB} | ||||
LIB= compiler_rt | LIB= compiler_rt | ||||
NO_PIC= | NO_PIC= | ||||
WARNS?= 2 | WARNS?= 2 | ||||
CFLAGS+= ${PICFLAG} | CFLAGS+= ${PICFLAG} | ||||
CFLAGS+= -fvisibility=hidden | CFLAGS+= -fvisibility=hidden | ||||
CFLAGS+= -DVISIBILITY_HIDDEN | CFLAGS+= -DVISIBILITY_HIDDEN | ||||
CFLAGS+= -I${SRCTOP}/contrib/libcxxrt | CFLAGS+= -I${SRCTOP}/contrib/libcxxrt | ||||
# mips-gcc attempts to use this in the googletest build, so presumably it's | |||||
# expecting it not to be hidden as it currently is. Build floatunsidf.c with | |||||
# default visibility instead. | |||||
CFLAGS.floatunsidf.c= -fvisibility=default | |||||
# gcc has incompatible internal declarations for __divtc3 and __multc3, but has | # gcc has incompatible internal declarations for __divtc3 and __multc3, but has | ||||
# no option to silence its warning, so make warnings non-fatal. | # no option to silence its warning, so make warnings non-fatal. | ||||
NO_WERROR.gcc= | NO_WERROR.gcc= | ||||
.include "Makefile.inc" | .include "Makefile.inc" | ||||
.if ${MK_INSTALLLIB} != "no" | .if ${MK_INSTALLLIB} != "no" | ||||
SYMLINKS+= libcompiler_rt.a ${LIBDIR}/libgcc.a | SYMLINKS+= libcompiler_rt.a ${LIBDIR}/libgcc.a | ||||
.endif | .endif | ||||
.if ${MK_PROFILE} != "no" | .if ${MK_PROFILE} != "no" | ||||
SYMLINKS+= libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a | SYMLINKS+= libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a | ||||
.endif | .endif | ||||
.include <bsd.lib.mk> | .include <bsd.lib.mk> |