Merge pull request #29 from fkautz/pr_out_fixing_isal_compile_from_root_workaround_for_https_code_google_com_p_go_issues_detail_id_7891

Fixing isal compile from root, workaround for https://code.google.com/p/go/issues/detail?id=7891
master
Harshavardhana 10 years ago
commit 324c23f12e
  1. 11
      Makefile
  2. 2
      erasure/decode.go
  3. 2
      erasure/encode.go
  4. 1
      isal

@ -2,13 +2,16 @@
all: test install all: test install
test: build-erasure:
mkdir -p cover cd erasure && make
test: build-erasure
godep go test -race -coverprofile=cover/cover.out github.com/minio-io/minio godep go test -race -coverprofile=cover/cover.out github.com/minio-io/minio
godep go test -race github.com/minio-io/minio/cmd/minio godep go test -race github.com/minio-io/minio/cmd/minio
install: install: build-erasure
godep go install -race github.com/minio-io/minio/cmd/minio godep go install github.com/minio-io/minio/cmd/minio
save: save:
godep save ./... godep save ./...

@ -20,7 +20,7 @@
package erasure package erasure
// #cgo CPPFLAGS: -Iisal/include // #cgo CPPFLAGS: -Iisal/include
// #cgo LDFLAGS: isal/isa-l.so // #cgo LDFLAGS: isal/isa-l.a
// #include <stdlib.h> // #include <stdlib.h>
// #include <erasure-code.h> // #include <erasure-code.h>
// #include <stdlib.h> // #include <stdlib.h>

@ -20,7 +20,7 @@
package erasure package erasure
// #cgo CPPFLAGS: -Iisal/include // #cgo CPPFLAGS: -Iisal/include
// #cgo LDFLAGS: isal/isa-l.so // #cgo LDFLAGS: isal/isa-l.a
// #include <stdlib.h> // #include <stdlib.h>
// #include <erasure-code.h> // #include <erasure-code.h>
// #include <stdlib.h> // #include <stdlib.h>

@ -0,0 +1 @@
erasure/isal
Loading…
Cancel
Save