Skip to content

stjordanis/c-lz4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LZ4

This is a go-gettable version of the LZ4 library for use in Go code that needs to link against the LZ4 library but wants to integrate with go get and go build. The LZ4 source is currently pinned to the r128 release.

To use in your project you need to import the package and set appropriate cgo flag directives:

import _ "github.com/cockroachdb/c-lz4"

// #cgo CPPFLAGS: -I <relative-path>/c-lz4/internal/lib
// #cgo darwin LDFLAGS: -Wl,-undefined -Wl,dynamic_lookup
// #cgo !darwin LDFLAGS: -Wl,-unresolved-symbols=ignore-all
import "C"

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.0%
  • Makefile 5.5%
  • Python 1.0%
  • Roff 0.9%
  • CMake 0.5%
  • Shell 0.1%