add rpath and go.mod

This commit is contained in:
George Hotz 2021-10-27 11:38:06 -07:00 committed by lazymio
parent 94a82ed94d
commit 8732cff287
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
2 changed files with 6 additions and 2 deletions

View File

@ -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"
*/

4
go.mod Normal file
View File

@ -0,0 +1,4 @@
module github.com/unicorn-engine/unicorn
go 1.17