mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
Fix build with clang
Partially revert cdd703f's revert ofc163410
, as linking with clang with --param=ssp-buffer-size=4 still fails with: "argument unused during compilation". (cherry picked from commit4b91dc24d1
)
This commit is contained in:
parent
ab9ff9ed37
commit
15bde978da
@ -182,6 +182,13 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
|
||||
dnl gl_WARN_ADD([-fstack-protector])
|
||||
gl_WARN_ADD([-fstack-protector-all])
|
||||
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*)
|
||||
dnl FreeBSD ships old gcc 4.2.1 which doesn't handle
|
||||
|
Loading…
Reference in New Issue
Block a user