Skip to content
This repository has been archived by the owner on Jul 3, 2018. It is now read-only.

Commit

Permalink
Copy shared library everywhere to fix linking.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Dec 4, 2014
1 parent bbe9339 commit 8d9a078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ all:
go vet .
$(CC) -g -fPIC -c -o lib/lib.o lib/lib.c
$(CC) -g -fPIC -shared -o liblib.so lib/lib.o
$(CC) -g -fPIC -c wrapper/wrapper.c
LD_LIBRARY_PATH=. go run main.go
cp liblib.so wrapper/
LD_LIBRARY_PATH=. go run main2.go
2 changes: 1 addition & 1 deletion wrapper/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package wrapper

/*
#include "wrapper.h"
#cgo LDFLAGS: -L.. -llib
#cgo LDFLAGS: -L. -llib
*/
import "C"

Expand Down

0 comments on commit 8d9a078

Please sign in to comment.