Skip to content

Commit

Permalink
add rpath and go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Oct 27, 2021
1 parent 9e14430 commit 3df776b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/go/unicorn/unicorn.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

/*
#cgo CFLAGS: -O3 -Wall -Werror -I../../../include
#cgo LDFLAGS: -L../../../ -lunicorn
#cgo linux LDFLAGS: -L../../../ -lunicorn -lrt
#cgo LDFLAGS: -L../../../ -lunicorn -Wl,-rpath,${SRCDIR}/../../../
#cgo linux LDFLAGS: -L../../../ -lunicorn -lrt -Wl,-rpath,${SRCDIR}/../../../
#include <unicorn/unicorn.h>
#include "uc.h"
*/
Expand Down
4 changes: 4 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module github.com/unicorn-engine/unicorn

go 1.17

0 comments on commit 3df776b

Please sign in to comment.