summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-02-21 19:58:45 +0000
committerdim <dim@FreeBSD.org>2014-02-21 19:58:45 +0000
commit342a49ce81f9e0875d310a9b0ddf3af1b554e817 (patch)
tree8bb6c05dc306d333cd167825b9464b2409412f02 /share/mk
parenta716a1cf6bbca97898bb2929962f5d1b571bafc8 (diff)
downloadFreeBSD-src-342a49ce81f9e0875d310a9b0ddf3af1b554e817.zip
FreeBSD-src-342a49ce81f9e0875d310a9b0ddf3af1b554e817.tar.gz
In case source files are compiled with -g, tell clang not to emit .cfi
directives, since on sparc64 we must still GNU as, which does not support those directives. Note there are several programs and libraries in our tree, which are always compiled with -g, even if DEBUG_FLAGS is not set by the user!
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.sys.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 5ba2d51..adee6cf 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -120,6 +120,10 @@ CLANG_NO_IAS= -no-integrated-as
CLANG_OPT_SMALL= -mstack-alignment=8 -mllvm -inline-threshold=3\
-mllvm -enable-load-pre=false -mllvm -simplifycfg-dup-ret
CFLAGS+= -Qunused-arguments
+.if ${MACHINE_CPUARCH} == "sparc64"
+# Don't emit .cfi directives, since we must use GNU as on sparc64, for now.
+CFLAGS+= -fno-dwarf2-cfi-asm
+.endif # SPARC64
CFLAGS+= ${CFLAGS.clang}
CXXFLAGS+= ${CXXFLAGS.clang}
.else # !CLANG
OpenPOWER on IntegriCloud