diff options
author | David Daney <ddaney@avtrex.com> | 2008-09-05 17:09:02 +0000 |
---|---|---|
committer | David Daney <daney@gcc.gnu.org> | 2008-09-05 17:09:02 +0000 |
commit | c07cd2c7c4d054415c8c0674617aab31efe9c73f (patch) | |
tree | 5d217d4a6170f98ed2c4e56aa9f9040d46d5fdeb /libjava/Makefile.am | |
parent | 7aa4a1dfa98e1368ba4cb05b5bd19f9c96def4fb (diff) | |
download | gcc-c07cd2c7c4d054415c8c0674617aab31efe9c73f.zip gcc-c07cd2c7c4d054415c8c0674617aab31efe9c73f.tar.gz gcc-c07cd2c7c4d054415c8c0674617aab31efe9c73f.tar.bz2 |
install.texi (--enable-reduced-reflection): Document new option.
2008-09-05 David Daney <ddaney@avtrex.com>
* doc/install.texi (--enable-reduced-reflection): Document new option.
2008-09-05 David Daney <ddaney@avtrex.com>
* configure.ac (reduced-reflection): New AC_ARG_ENABLE.
(build_libgcj_reduced_reflection): New variable.
(BUILD_LIBGCJ_REDUCED_REFLECTION): New AM_CONDITIONAL.
* Makefile.am (LIBGCJ_REDUCED_REFLECTION_FLAGS): New variable.
(%.lo: %.list): Add LIBGCJ_REDUCED_REFLECTION_FLAGS to compile
command.
(java/util/concurrent.lo, java/util/concurrent/atomic.lo,
java/util/concurrent/locks.lo): Override
LIBGCJ_REDUCED_REFLECTION_FLAGS.
* Makefile.in, include/Makefile.in, testsuite/Makefile.in,
gcj/Makefile.in, configure: Regenerate.
From-SVN: r140038
Diffstat (limited to 'libjava/Makefile.am')
-rw-r--r-- | libjava/Makefile.am | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libjava/Makefile.am b/libjava/Makefile.am index ce6dbd2..9b778f5 100644 --- a/libjava/Makefile.am +++ b/libjava/Makefile.am @@ -173,6 +173,12 @@ else LIBGCJ_BC_FLAGS = -findirect-dispatch -fno-indirect-classes endif +if BUILD_LIBGCJ_REDUCED_REFLECTION +LIBGCJ_REDUCED_REFLECTION_FLAGS = -freduced-reflection +else +LIBGCJ_REDUCED_REFLECTION_FLAGS = +endif + ## Extra CFLAGS used for JNI C sources shared with GNU Classpath. PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long @@ -401,8 +407,13 @@ lib-gnu-awt-xlib.la: $(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_DEPEND ## Compiling a list of java sources to a single .o. +# Concurrent things use reflection internally. +java/util/concurrent.lo \ +java/util/concurrent/atomic.lo \ +java/util/concurrent/locks.lo: LIBGCJ_REDUCED_REFLECTION_FLAGS = + %.lo: %.list - $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(here)/classpath/lib/classes -MT $@ -MD -MP -MF $(basename $@).deps @$< + $(LTGCJCOMPILE) $(LIBGCJ_REDUCED_REFLECTION_FLAGS) -c -o $@ -fsource-filename=$(here)/classpath/lib/classes -MT $@ -MD -MP -MF $(basename $@).deps @$< java/lang/Object.lo: classpath/lib/java/lang/Object.class $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(srcdir)/$(basename $@).java $< |