提交 4b91dc24 编写于 作者: J Ján Tomko

Fix build with clang

Partially revert cdd703f4's revert of c1634100, as linking with clang
with --param=ssp-buffer-size=4 still fails with:
"argument unused during compilation".
上级 1d763265
...@@ -185,6 +185,13 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[ ...@@ -185,6 +185,13 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
dnl gl_WARN_ADD([-fstack-protector]) dnl gl_WARN_ADD([-fstack-protector])
gl_WARN_ADD([-fstack-protector-all]) gl_WARN_ADD([-fstack-protector-all])
gl_WARN_ADD([--param=ssp-buffer-size=4]) gl_WARN_ADD([--param=ssp-buffer-size=4])
dnl Even though it supports it, clang complains about
dnl use of --param=ssp-buffer-size=4 unless used with
dnl the -c arg. It doesn't like it when used with args
dnl that just link together .o files. Unfortunately
dnl we can't avoid that with automake, so we must turn
dnl off the following clang specific warning
gl_WARN_ADD([-Wno-unused-command-line-argument])
;; ;;
*-*-freebsd*) *-*-freebsd*)
dnl FreeBSD ships old gcc 4.2.1 which doesn't handle dnl FreeBSD ships old gcc 4.2.1 which doesn't handle
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册