|
51 | 51 | # os=Default is meant to be generic unix/linux
|
52 | 52 |
|
53 | 53 | # To support new CPU architecture, add a new target name here
|
54 |
| -known_os_archs := Linux-x86 Linux-x86_64 Linux-arm Linux-armv6 Linux-armv7 Linux-android-arm Linux-android-aarch64 Linux-aarch64 Linux-ppc Linux-ppc64 Linux-ppc64le Linux-s390 Linux-s390x Mac-x86 Mac-x86_64 Mac-aarch64 FreeBSD-x86_64 Windows-x86 Windows-x86_64 Windows-aarch64 SunOS-x86 SunOS-sparc SunOS-x86_64 AIX-ppc AIX-ppc64 Linux-riscv Linux-riscv64 |
| 54 | +known_os_archs := Linux-x86 Linux-x86_64 Linux-arm Linux-armv6 Linux-armv7 Linux-android-arm Linux-android-aarch64 Linux-aarch64 Linux-ppc Linux-ppc64 Linux-ppc64le Linux-s390 Linux-s390x Mac-x86 Mac-x86_64 Mac-aarch64 FreeBSD-x86_64 Windows-x86 Windows-x86_64 Windows-aarch64 SunOS-x86 SunOS-sparc SunOS-x86_64 AIX-ppc AIX-ppc64 Linux-riscv Linux-riscv64 Linux-loongarch Linux-loongarch64 |
55 | 55 | os_arch := $(OS_NAME)-$(OS_ARCH)
|
56 | 56 | IBM_JDK_7 := $(findstring IBM, $(shell $(JAVA) -version 2>&1 | grep IBM | grep "JRE 1.7"))
|
57 | 57 |
|
@@ -310,6 +310,20 @@ Windows-aarch64_CXXFLAGS := -Ilib/inc_mac -I$(JAVA_HOME)/include -O2 -fPIC -mar
|
310 | 310 | Windows-aarch64_LINKFLAGS := -Wl,--kill-at -shared -static
|
311 | 311 | Windows-aarch64_LIBNAME := snappyjava.dll
|
312 | 312 |
|
| 313 | +Linux-loongarch_CXX := $(CROSS_PREFIX)g++ |
| 314 | +Linux-loongarch_STRIP := $(CROSS_PREFIX)strip |
| 315 | +Linux-loongarch_CXXFLAGS := -Ilib/inc_linux -I$(JAVA_HOME)/include -O2 -fPIC -fvisibility=hidden -std=c++11 |
| 316 | +Linux-loongarch_LINKFLAGS := -shared |
| 317 | +Linux-loongarch_LIBNAME := libsnappyjava.so |
| 318 | +Linux-loongarch_SNAPPY_FLAGS:= |
| 319 | + |
| 320 | +Linux-loongarch64_CXX := $(CROSS_PREFIX)g++ |
| 321 | +Linux-loongarch64_STRIP := $(CROSS_PREFIX)strip |
| 322 | +Linux-loongarch64_CXXFLAGS := -Ilib/inc_linux -I$(JAVA_HOME)/include -O2 -fPIC -fvisibility=hidden -std=c++11 |
| 323 | +Linux-loongarch64_LINKFLAGS := -shared |
| 324 | +Linux-loongarch64_LIBNAME := libsnappyjava.so |
| 325 | +Linux-loongarch64_SNAPPY_FLAGS:= |
| 326 | + |
313 | 327 |
|
314 | 328 | CXX := $($(os_arch)_CXX)
|
315 | 329 | STRIP := $($(os_arch)_STRIP)
|
|
0 commit comments