772c631af8
Otherwise, programs compiled with -fprofile-instr-generate will encounter undefined symbol errors during linking, for example __llvm_profile_counter_bias, lprofSetRuntimeCounterRelocation and a few others were missing from the profile library. Reported by: ota@j.email.ne.jp PR: 254001 MFC after: 3 days
35 lines
960 B
Makefile
35 lines
960 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
LIB= clang_rt.profile-${CRTARCH}
|
|
|
|
CFLAGS+= -DCOMPILER_RT_HAS_ATOMICS=1
|
|
CFLAGS+= -DCOMPILER_RT_HAS_FCNTL_LCK=1
|
|
CFLAGS+= -DCOMPILER_RT_HAS_UNAME=1
|
|
|
|
# This is needed for --coverage
|
|
CXXFLAGS+= -fvisibility=default
|
|
|
|
SRCS+= profile/GCDAProfiling.c
|
|
SRCS+= profile/InstrProfiling.c
|
|
SRCS+= profile/InstrProfilingBiasVar.c
|
|
SRCS+= profile/InstrProfilingBuffer.c
|
|
SRCS+= profile/InstrProfilingFile.c
|
|
SRCS+= profile/InstrProfilingInternal.c
|
|
SRCS+= profile/InstrProfilingMerge.c
|
|
SRCS+= profile/InstrProfilingMergeFile.c
|
|
SRCS+= profile/InstrProfilingNameVar.c
|
|
SRCS+= profile/InstrProfilingPlatformLinux.c
|
|
SRCS+= profile/InstrProfilingPlatformOther.c
|
|
SRCS+= profile/InstrProfilingRuntime.cpp
|
|
SRCS+= profile/InstrProfilingUtil.c
|
|
SRCS+= profile/InstrProfilingValue.c
|
|
SRCS+= profile/InstrProfilingWriter.c
|
|
|
|
.PATH: ${CRTSRC}/include/profile
|
|
INCSDIR= ${CLANGDIR}/include/profile
|
|
INCS+= InstrProfData.inc
|
|
|
|
.include <bsd.lib.mk>
|