Fixing isal compile from root, workaround for https://code.google.com/p/go/issues/detail?id=7891

master
Frederick F. Kautz IV 10 years ago
parent 084d029b54
commit 1a6b9ccfc8
  1. 11
      Makefile
  2. 2
      erasure/decode.go
  3. 2
      erasure/encode.go
  4. 1
      isal

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

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

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

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