summaryrefslogtreecommitdiffstats
path: root/cmd/ztest/Makefile.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-06-14 11:02:13 -0700
committerBrian Behlendorf <[email protected]>2011-06-14 14:43:22 -0700
commit8a7e1ceefa430988c8f888ca708ab307333b4464 (patch)
tree5368cde4746cbc6886ec599ace454cc9fa0a073a /cmd/ztest/Makefile.in
parent10715a018760e1d862b8348e31dc505e832a0904 (diff)
Check for -Wno-unused-but-set-variable gcc support
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's 12c1acde76683108441827ae9affba1872f3afe5 and 79713039a2b6e0ed223d141b4a8a8455f282d2f2 for the reason the -Wno-unused-but-set-variable options was originally added.
Diffstat (limited to 'cmd/ztest/Makefile.in')
-rw-r--r--cmd/ztest/Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/ztest/Makefile.in b/cmd/ztest/Makefile.in
index e8c24845c..26ae11d90 100644
--- a/cmd/ztest/Makefile.in
+++ b/cmd/ztest/Makefile.in
@@ -73,6 +73,7 @@ am__aclocal_m4_deps = \
$(top_srcdir)/config/user-ioctl.m4 \
$(top_srcdir)/config/user-libblkid.m4 \
$(top_srcdir)/config/user-libuuid.m4 \
+ $(top_srcdir)/config/user-no-unused-but-set-variable.m4 \
$(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
$(top_srcdir)/config/user-selinux.m4 \
$(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
@@ -203,6 +204,7 @@ MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
+NO_UNUSED_BUT_SET_VARIABLE = @NO_UNUSED_BUT_SET_VARIABLE@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
@@ -302,7 +304,7 @@ DEFAULT_INCLUDES = -include ${top_builddir}/zfs_config.h \
-I$(top_srcdir)/include -I$(top_srcdir)/lib/libspl/include
AM_LIBTOOLFLAGS = --silent
AM_CFLAGS = -Wall -Wstrict-prototypes -fno-strict-aliasing \
- -Wno-unused-but-set-variable ${DEBUG_CFLAGS} -D_GNU_SOURCE \
+ ${NO_UNUSED_BUT_SET_VARIABLE} ${DEBUG_CFLAGS} -D_GNU_SOURCE \
-D__EXTENSIONS__ -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS \
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE \
-DTEXT_DOMAIN=\"zfs-linux-user\" $(DEBUG_STACKFLAGS) \