cockroachdb/c-lz4

Name: c-lz4

Owner: CockroachDB

Description: null

Created: 2015-04-27 15:55:03.0

Updated: 2018-02-09 12:09:02.0

Pushed: 2016-06-06 19:19:39.0

Homepage: null

Size: 250

Language: C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

rt _ "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
rt "C"

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.