This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Don't build libzgcj all the time
- To: gcc-patches at gcc dot gnu dot org
- Subject: [PATCH] Don't build libzgcj all the time
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Mon, 30 Oct 2000 21:40:21 -0500
Building libzgcj is pointless unless Java is one of the enabled languages.
This patch tests the language list and adds the library as appropriate.
Tested with half a dozen different combinations of --enable-languages,
including not specifying it at all.
2000-10-30 Phil Edwards <pme@sources.redhat.com>
* configure.in: Only build zlib for the target (libzgcj) if Java
has been enabled.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/configure.in,v
retrieving revision 1.72
diff -u -3 -r1.72 configure.in
--- configure.in 2000/09/13 17:11:04 1.72
+++ configure.in 2000/10/31 02:20:18
@@ -57,6 +57,12 @@
libstdcxx_flags='-isystem $$s/libstdc++ -isystem $$s/libstdc++/std -isystem $$s/libstdc++/stl -isystem $$s/libio -isystem $$r/$(TARGET_SUBDIR)/libio -L$$r/$(TARGET_SUBDIR)/libstdc++'
fi
+# Similarly, only build zlib for the target if Java is to be built.
+case x"$enable_languages" in
+ x | xall | *java* ) target_zlib='target-zlib' ;;
+ *) target_zlib='' ;;
+esac
+
# these tools are built for the host environment
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
# know that we are building the simulator.
@@ -75,7 +81,7 @@
target-libchill \
target-libffi \
target-libjava \
- target-zlib \
+ ${target_zlib} \
target-boehm-gc \
target-qthreads \
target-libobjc"