diff --git a/Makefile b/Makefile index 90ca115..4ec71ce 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,8 @@ else ifeq ($(GOOS_GOARCH),linux_arm) TARGET=arm-linux-gnueabi GOARCH=arm GOOS=linux $(MAKE) package-arch else ifeq ($(GOOS_GOARCH),linux_arm64) TARGET=aarch64-linux GOARCH=arm64 GOOS=linux $(MAKE) package-arch +else ifeq ($(GOOS_GOARCH),linux_ppc64le) + TARGET=x86_64-linux GOARCH=ppc64le GOOS=linux $(MAKE) package-arch else ifeq ($(GOOS_GOARCH),linux_musl_amd64) TARGET=x86_64-linux-musl GOARCH=amd64 GOOS=linux_musl $(MAKE) package-arch else ifeq ($(GOOS_GOARCH),linux_musl_arm64) @@ -60,6 +62,7 @@ release: GOOS=linux GOARCH=amd64 $(MAKE) libzstd.a GOOS=linux GOARCH=arm64 $(MAKE) libzstd.a GOOS=linux GOARCH=arm $(MAKE) libzstd.a + GOOS=linux GOARCH=ppc64le $(MAKE) libzstd.a GOOS=linux_musl GOARCH=amd64 $(MAKE) libzstd.a GOOS=linux_musl GOARCH=arm64 $(MAKE) libzstd.a GOOS=darwin GOARCH=arm64 $(MAKE) libzstd.a diff --git a/libzstd_linux_ppc64le.a b/libzstd_linux_ppc64le.a new file mode 100644 index 0000000..0a42810 Binary files /dev/null and b/libzstd_linux_ppc64le.a differ diff --git a/libzstd_linux_ppc64le.go b/libzstd_linux_ppc64le.go new file mode 100644 index 0000000..89a5808 --- /dev/null +++ b/libzstd_linux_ppc64le.go @@ -0,0 +1,9 @@ +//go:build !musl +// +build !musl + +package gozstd + +/* +#cgo LDFLAGS: ${SRCDIR}/libzstd_linux_ppc64le.a +*/ +import "C"