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