]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gold/testsuite/Makefile.am
* configure.ac: Export new conditional variable HAVE_ZLIB.
[thirdparty/binutils-gdb.git] / gold / testsuite / Makefile.am
index 0cf14d6445305cff926a23b6f262a5b291d0fe13..c3a0969d474878a08155e126e6ac5938ab370c51 100644 (file)
@@ -536,13 +536,6 @@ undef_symbol.err: undef_symbol_main.o undef_symbol.so gcctestdir/ld
        fi
 
 
-# Test --compress-debug-sections.  FIXME: check we actually compress.
-check_PROGRAMS += flagstest_compress_debug_sections
-flagstest_compress_debug_sections: flagstest_debug.o gcctestdir/ld
-       $(CXXLINK) -Bgcctestdir/ -o $@ $< -Wl,--compress-debug-sections=zlib
-       test -s $@
-
-
 # Test -o when emitting to a special file (such as something in /dev).
 check_PROGRAMS += flagstest_o_specialfile
 flagstest_o_specialfile: flagstest_debug.o gcctestdir/ld
@@ -550,6 +543,15 @@ flagstest_o_specialfile: flagstest_debug.o gcctestdir/ld
        chmod a+x $@
        test -s $@
 
+if HAVE_ZLIB
+
+# Test --compress-debug-sections.  FIXME: check we actually compress.
+check_PROGRAMS += flagstest_compress_debug_sections
+flagstest_compress_debug_sections: flagstest_debug.o gcctestdir/ld
+       $(CXXLINK) -Bgcctestdir/ -o $@ $< -Wl,--compress-debug-sections=zlib
+       test -s $@
+
+
 # The specialfile output has a tricky case when we also compress debug
 # sections, because it requires output-file resizing.
 check_PROGRAMS += flagstest_o_specialfile_and_compress_debug_sections
@@ -559,6 +561,8 @@ flagstest_o_specialfile_and_compress_debug_sections: flagstest_debug.o \
        chmod a+x $@
        test -s $@
 
+endif HAVE_ZLIB
+
 # Test symbol versioning.
 check_PROGRAMS += ver_test
 ver_test_SOURCES = ver_test_main.cc