[libgda] JDBC: Fixes for JDBC provider
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] JDBC: Fixes for JDBC provider
- Date: Wed, 1 Aug 2018 21:20:27 +0000 (UTC)
commit b8d0997a1e751651af2641b325b830eeead3568c
Author: Daniel Espinosa <esodan gmail com>
Date: Tue Jul 31 18:08:46 2018 -0500
JDBC: Fixes for JDBC provider
m4/java.m4 | 1 -
providers/jdbc/Makefile.am | 6 +++---
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/m4/java.m4 b/m4/java.m4
index 3fa9a86f3..1ef32f179 100644
--- a/m4/java.m4
+++ b/m4/java.m4
@@ -111,7 +111,6 @@ m4_define([_JAVA_CHECK_INTERNAL],
AC_MSG_CHECKING([if all java programs are found])
AC_PATH_PROGS(JAVA_PROG,java,,${JAVA_PATH})
AC_PATH_PROGS(JAVAC,javac,,${JAVA_PATH})
- AC_PATH_PROGS(JAVAH,javah,,${JAVA_PATH})
AC_PATH_PROGS(JAR,jar,,${JAVA_PATH})
have_all_java=yes
diff --git a/providers/jdbc/Makefile.am b/providers/jdbc/Makefile.am
index f41fd5fd9..19db33cfd 100644
--- a/providers/jdbc/Makefile.am
+++ b/providers/jdbc/Makefile.am
@@ -80,8 +80,8 @@ jdbc-resources.h jdbc-resources.c: $(srcdir)/jdbc.gresource.xml $(RAWRESOURCES)
CLEANFILES = $(resources) $(RAWRESOURCES)
-$(jni_headers): $(jdbcprov_classes)
- $(JAVAH) -classpath . -d $(builddir) -force `basename $@ | sed -e 's/\.h$$//'`
+$(jni_headers): $(jdbcprov_sources)
+ $(JAVAC) -classpath . -h $(builddir) $^
jdbcprov_jar = gdaprovider-6.0.jar
jdbcprov_sources = \
@@ -96,7 +96,7 @@ jdbcprovdir = $(providerdir)
jdbcprov_DATA = $(jdbcprov_jar)
GdaJConnection.class: $(jdbcprov_sources)
- $(JAVAC) -cp . $(JFLAGS) -d $(top_builddir)/providers/jdbc $^
+ $(JAVAC) -cp . $(JFLAGS) -d $(top_builddir)/providers/jdbc -classpath $(builddir) -h $(builddir) $^
$(jdbcprov_jar): $(jdbcprov_classes)
$(JAR) cfm $(jdbcprov_jar) $(top_srcdir)/providers/jdbc/MANIFEST.MF *.class
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]