archivers/snappy-java: fix build on powerpc64le

This commit is contained in:
Piotr Kubaj 2021-10-13 10:48:33 +00:00
parent 5fd068f522
commit fd836055d6
2 changed files with 11 additions and 2 deletions

View File

@ -68,6 +68,8 @@ PLATFORM_DIR_SUFFIX= FreeBSD-x86
PLATFORM_DIR_SUFFIX= FreeBSD-aarch64
. elif ${ARCH} == powerpc64
PLATFORM_DIR_SUFFIX= FreeBSD-ppc64
. elif ${ARCH} == powerpc64le
PLATFORM_DIR_SUFFIX= FreeBSD-ppc64le
. else
PLATFORM_DIR_SUFFIX= Default
. endif

View File

@ -5,11 +5,11 @@
# os=Default is meant to be generic unix/linux
-known_os_archs := Linux-x86 Linux-x86_64 Linux-arm Linux-armv6 Linux-armv7 Linux-android-arm Linux-aarch64 Linux-ppc Linux-ppc64 Linux-ppc64le Linux-s390 Linux-s390x Mac-x86 Mac-x86_64 FreeBSD-x86_64 Windows-x86 Windows-x86_64 SunOS-x86 SunOS-sparc SunOS-x86_64 AIX-ppc AIX-ppc64
+known_os_archs := Linux-x86 Linux-x86_64 Linux-arm Linux-armv6 Linux-armv7 Linux-android-arm Linux-aarch64 Linux-ppc Linux-ppc64 Linux-ppc64le Linux-s390 Linux-s390x Mac-x86 Mac-x86_64 FreeBSD-aarch64 FreeBSD-ppc64 FreeBSD-x86 FreeBSD-x86_64 Windows-x86 Windows-x86_64 SunOS-x86 SunOS-sparc SunOS-x86_64 AIX-ppc AIX-ppc64
+known_os_archs := Linux-x86 Linux-x86_64 Linux-arm Linux-armv6 Linux-armv7 Linux-android-arm Linux-aarch64 Linux-ppc Linux-ppc64 Linux-ppc64le Linux-s390 Linux-s390x Mac-x86 Mac-x86_64 FreeBSD-aarch64 FreeBSD-ppc64 FreeBSD-ppc64le FreeBSD-x86 FreeBSD-x86_64 Windows-x86 Windows-x86_64 SunOS-x86 SunOS-sparc SunOS-x86_64 AIX-ppc AIX-ppc64
os_arch := $(OS_NAME)-$(OS_ARCH)
IBM_JDK_7 := $(findstring IBM, $(shell $(JAVA) -version 2>&1 | grep IBM | grep "JRE 1.7"))
@@ -249,6 +249,27 @@ Mac-x86_64_CXXFLAGS := -Ilib/inc_mac -I$(JAVA_HOME)/i
@@ -249,6 +249,34 @@ Mac-x86_64_CXXFLAGS := -Ilib/inc_mac -I$(JAVA_HOME)/i
Mac-x86_64_LINKFLAGS := -dynamiclib
Mac-x86_64_LIBNAME := libsnappyjava.jnilib
Mac-x86_64_SNAPPY_FLAGS :=
@ -28,6 +28,13 @@
+FreeBSD-ppc64_LIBNAME := libsnappyjava.so
+FreeBSD-ppc64_SNAPPY_FLAGS :=
+
+FreeBSD-ppc64le_CXX := $(CROSS_PREFIX)g++
+FreeBSD-ppc64le_STRIP := $(CROSS_PREFIX)strip
+FreeBSD-ppc64le_CXXFLAGS := -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden
+FreeBSD-ppc64le_LINKFLAGS := -shared -static-libgcc
+FreeBSD-ppc64le_LIBNAME := libsnappyjava.so
+FreeBSD-ppc64le_SNAPPY_FLAGS :=
+
+FreeBSD-x86_CXX := $(CROSS_PREFIX)g++
+FreeBSD-x86_STRIP := $(CROSS_PREFIX)strip
+FreeBSD-x86_CXXFLAGS := -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden