Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adds powerPC arch support #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Binary file added libzstd_linux_ppc64le.a
Binary file not shown.
9 changes: 9 additions & 0 deletions libzstd_linux_ppc64le.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//go:build !musl
// +build !musl

package gozstd

/*
#cgo LDFLAGS: ${SRCDIR}/libzstd_linux_ppc64le.a
*/
import "C"