1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PACKAGE=lib${LIB} 6LIB= compiler_rt 7NO_PIC= 8WARNS?= 2 9 10CFLAGS+=${PICFLAG} -fvisibility=hidden -DVISIBILITY_HIDDEN 11CFLAGS+=-I${SRCTOP}/contrib/libcxxrt 12 13.include "Makefile.inc" 14 15.if ${MK_INSTALLLIB} != "no" 16SYMLINKS+=libcompiler_rt.a ${LIBDIR}/libgcc.a 17.endif 18.if ${MK_PROFILE} != "no" 19SYMLINKS+=libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a 20.endif 21 22.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" || \ 23 ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_ARCH:Marmv6*} 24AFLAGS+=--noexecstack 25ACFLAGS+=-Wa,--noexecstack 26.endif 27 28 29.include <bsd.lib.mk> 30