Compile Java code with -target 1.8.

This commit is contained in:
Jerry James 2020-07-26 16:28:09 -06:00
parent 7e2346597d
commit 78d7b84e94

View File

@ -146,7 +146,7 @@ CPPFLAGS="$CPPFLAGS -I%{_libdir}/gprolog-`gprolog --version 2>&1 | head -1 | sed
# The javah tool was removed in JDK 10
if [ ! -e %{_bindir}/javah ]; then
export JAVAH="%{_bindir}/javac"
sed -e 's/\$(JAVAC)/& -h ./' \
sed -e 's/\$(JAVAC)/& -h . -source 1.8 -target 1.8/' \
-e '/^java_cxx_headers\.stamp$/d' \
-i interfaces/Java/parma_polyhedra_library/Makefile.in
fi
@ -157,7 +157,7 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
make DESTDIR=%{buildroot} INSTALL="%{__install} -p" install
%make_install INSTALL="%{__install} -p"
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/%{name}/*.la
# Do not install the swiprolog-static file, since pl-static no longer exists