Fix Scilab minimal compilation after:
[scilab.git] / scilab / Makefile.am
index 6b949e5..6831557 100644 (file)
@@ -69,10 +69,13 @@ scilab_bin_LDADD    = \
                        $(top_builddir)/modules/libscilab.la \
                        $(top_builddir)/modules/libscilab-cli.la \
                        $(top_builddir)/modules/console/libsciconsole-minimal.la \
-                       $(top_builddir)/modules/jvm/libscijvm.la \
                        $(OPENMPI_LIBS) $(XML_LIBS) \
                        $(COMMON_LIBS) $(FLIBS)
 
+if NEED_JAVA
+scilab_bin_LDADD += $(top_builddir)/modules/jvm/libscijvm.la
+endif
+
 scilab_cli_bin_LDADD   = \
                        $(top_builddir)/modules/libscilab-cli.la \
                        $(top_builddir)/modules/console/libsciconsole-minimal.la \