]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
FreeBSD: clang compiler related changes to configure.ac
authorOliver Kurth <okurth@vmware.com>
Wed, 20 Jun 2018 00:07:51 +0000 (17:07 -0700)
committerOliver Kurth <okurth@vmware.com>
Wed, 20 Jun 2018 00:07:51 +0000 (17:07 -0700)
commit8674505bf43fcf3099d767d17d5e8b400bb2e418
tree9523780d018be9dbcd7a5a5ad5eb261d7a6bb23d
parent30e58e8a0a18fcf3013cd76889056c055966bd50
FreeBSD: clang compiler related changes to configure.ac

On FreeBSD, the unwind.h header is available in the libunwind
package (/usr/ports/devel/libunwind) which may or may not be installed
on a system.  The libunwind functions to determine the call-chain in a
program are defined only if " __GNU_SOURCE" is defined to enable "all"
GCC extensions.  Avoid the unwind.h header if seen on FreeBSD.

The "clang" compiler will issue warnings if the address of a member
of a packed structure is taken.  Since warnings are errors with -Wall,
add --Wno-address-of-packed-member to CFLAGS when compiling with
"clang".
open-vm-tools/configure.ac