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