mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
8a7e1ceefa
Gcc versions 4.3.2 and earlier do not support the compiler flag -Wno-unused-but-set-variable. This can lead to build failures on older Linux platforms such as Debian Lenny. Since this is an optional build argument this changes add a new autoconf check for the option. If it is supported by the installed version of gcc then it is used otherwise it is omited. See commit's12c1acde76
and79713039a2
for the reason the -Wno-unused-but-set-variable options was originally added.
9 lines
392 B
Plaintext
9 lines
392 B
Plaintext
DEFAULT_INCLUDES = -include ${top_builddir}/zfs_config.h
|
|
|
|
AM_LIBTOOLFLAGS = --silent
|
|
AM_CFLAGS = -Wall -Wstrict-prototypes
|
|
AM_CFLAGS += -fno-strict-aliasing ${NO_UNUSED_BUT_SET_VARIABLE} ${DEBUG_CFLAGS}
|
|
AM_CFLAGS += -D_GNU_SOURCE -D__EXTENSIONS__ -D_REENTRANT
|
|
AM_CFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64
|
|
AM_CFLAGS += -D_LARGEFILE64_SOURCE -DTEXT_DOMAIN=\"zfs-linux-user\"
|