Index: lib/libclang_rt/Makefile.inc =================================================================== --- lib/libclang_rt/Makefile.inc +++ lib/libclang_rt/Makefile.inc @@ -26,7 +26,10 @@ .endif CFLAGS+= -fno-stack-protector CFLAGS+= -funwind-tables +# profiling support needs to be exposed +.if ! ${.CURDIR:T:Mprofile} CFLAGS+= -fvisibility-inlines-hidden CFLAGS+= -fvisibility=hidden +.endif CFLAGS+= -I${CRTSRC}/lib CXXFLAGS+= -std=c++11