diff --git a/leveldbjni-all/pom.xml b/leveldbjni-all/pom.xml index 622f6ef..380532a 100755 --- a/leveldbjni-all/pom.xml +++ b/leveldbjni-all/pom.xml @@ -114,7 +114,12 @@ 99-master-SNAPSHOT provided - + + org.fusesource.leveldbjni + leveldbjni-linux64-loongarch64 + 99-master-SNAPSHOT + provided + @@ -156,6 +161,7 @@ META-INF/native/freebsd64/libleveldbjni.so;osname=FreeBSD;processor=x86-64, META-INF/native/linux64/ppc64le/libleveldbjni.so;osname=Linux;processor=ppc64le, META-INF/native/linux64/aarch64/libleveldbjni.so;osname=Linux;processor=aarch64 + META-INF/native/linux64/loongarch64/libleveldbjni.so;osname=Linux;processor=loongarch64 diff --git a/leveldbjni-linux64-loongarch64/pom.xml b/leveldbjni-linux64-loongarch64/pom.xml new file mode 100644 index 0000000..90c0488 --- /dev/null +++ b/leveldbjni-linux64-loongarch64/pom.xml @@ -0,0 +1,111 @@ + + + + + 4.0.0 + + org.fusesource.leveldbjni + leveldbjni-project + 99-master-SNAPSHOT + + + org.fusesource.leveldbjni + leveldbjni-linux64-loongarch64 + 99-master-SNAPSHOT + + ${project.artifactId} + The leveldbjni linux 64 native libraries on loongarch64 machines + + + + org.fusesource.leveldbjni + leveldbjni + 99-master-SNAPSHOT + + + + + ${basedir}/../leveldbjni/src/test/java + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.1 + + ${basedir}/target/generated-sources/hawtjni/lib + + + + org.fusesource.hawtjni + maven-hawtjni-plugin + ${hawtjni-version} + + + + build + + + + + linux64/loongarch64 + leveldbjni + false + + org.fusesource.leveldbjni + leveldbjni + ${project.version} + native-src + zip + + + --with-leveldb=${env.LEVELDB_HOME} + --with-snappy=${env.SNAPPY_HOME} + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.4.3 + + true + once + -d64 -ea + false + ${project.build.directory} + + **/*Test.java + + + + + + + diff --git a/leveldbjni/src/main/native-package/Makefile.in b/leveldbjni/src/main/native-package/Makefile.in index 003b7fa..4939435 100644 --- a/leveldbjni/src/main/native-package/Makefile.in +++ b/leveldbjni/src/main/native-package/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.14 from Makefile.am. +# Makefile.in generated by automake 1.16 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. @@ -400,15 +400,15 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps'; \ - $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps --add-missing'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps --add-missing \ && exit 0; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps --add-missing Makefile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign --ignore-deps Makefile + $(AUTOMAKE) --foreign --ignore-deps --add-missing Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ diff --git a/leveldbjni/src/main/native-package/aclocal.m4 b/leveldbjni/src/main/native-package/aclocal.m4 index 2db7717..08fdd02 100644 --- a/leveldbjni/src/main/native-package/aclocal.m4 +++ b/leveldbjni/src/main/native-package/aclocal.m4 @@ -1,4 +1,4 @@ -# generated automatically by aclocal 1.14 -*- Autoconf -*- +# generated automatically by aclocal 1.16 -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. @@ -32,10 +32,10 @@ To do so, use the procedure documented by the package, typically 'autoreconf'.]) # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.14' +[am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.14], [], +m4_if([$1], [1.16], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -51,7 +51,7 @@ m4_define([_AM_AUTOCONF_VERSION], []) # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.14])dnl +[AM_AUTOMAKE_VERSION([1.16])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) diff --git a/leveldbjni/src/main/native-package/autotools/config.guess b/leveldbjni/src/main/native-package/autotools/config.guess index b79252d..a3aced9 100755 --- a/leveldbjni/src/main/native-package/autotools/config.guess +++ b/leveldbjni/src/main/native-package/autotools/config.guess @@ -944,6 +944,9 @@ EOF ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; + loongarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; diff --git a/leveldbjni/src/main/native-package/configure b/leveldbjni/src/main/native-package/configure index c6484e7..01c9257 100755 --- a/leveldbjni/src/main/native-package/configure +++ b/leveldbjni/src/main/native-package/configure @@ -6274,6 +6274,9 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) aarch64-*linux*) LD="${LD-ld} -m aarch64elf" ;; + loongarch64-*linux*) + LD="${LD-ld} -m elf64loongarch" + ;; esac ;; *64-bit*) @@ -6299,6 +6302,9 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) aarch64-*linux*) LD="${LD-ld} -m aarch64elf" ;; + loongarch64-*linux*) + LD="${LD-ld} -m elf64loongarch" + ;; esac ;; esac @@ -15289,7 +15295,7 @@ LDFLAGS="$LDFLAGS $JNI_EXTRA_LDFLAGS -release 99-master-SNAPSHOT" ## ----------------------------------------------------- ## Generate the files ## ----------------------------------------------------- -am__api_version='1.14' +am__api_version='1.16' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } diff --git a/leveldbjni/src/main/native-package/m4/libtool.m4 b/leveldbjni/src/main/native-package/m4/libtool.m4 index e225b2d..b78fa26 100644 --- a/leveldbjni/src/main/native-package/m4/libtool.m4 +++ b/leveldbjni/src/main/native-package/m4/libtool.m4 @@ -1313,7 +1313,7 @@ ia64-*-hpux*) ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|s390*-*tpf*|sparc*-*linux*|aarch64-*linux*) +s390*-*linux*|s390*-*tpf*|sparc*-*linux*|aarch64-*linux*|loongarch64-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then @@ -1341,6 +1341,9 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*|aarch64-*linux*) aarch64-*linux*) LD="${LD-ld} -m aarch64elf" ;; + loongarch64-*linux*) + LD="${LD-ld} -m elf64loongarch" + ;; esac ;; *64-bit*) @@ -1366,6 +1369,9 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*|aarch64-*linux*) aarch64-*linux*) LD="${LD-ld} -m aarch64elf" ;; + loongarch64-*linux*) + LD="${LD-ld} -m elf64loongarch" + ;; esac ;; esac diff --git a/pom.xml b/pom.xml index f7b3b08..c6f05d6 100755 --- a/pom.xml +++ b/pom.xml @@ -253,6 +253,7 @@ leveldbjni-sunos64-sparcv9 leveldbjni-linux64-ppc64le leveldbjni-linux64-aarch64 + leveldbjni-linux64-loongarch64 leveldbjni-all @@ -325,6 +326,7 @@ + linux64-ppc64le @@ -337,6 +339,12 @@ leveldbjni-linux64-aarch64 + + linux64-loongarch64 + + leveldbjni-linux64-loongarch64 + +