Skip to content

Commit 1208989

Browse files
committed
fix: 修复go binding无法找到动态库的问题
1 parent 8b72f17 commit 1208989

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

binding/go/gcrp/gcrp.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package gcrp
33
/*
44
#cgo CFLAGS: -I.
55
#cgo LDFLAGS: -L. -lCoralReefPlayer
6+
#cgo darwin LDFLAGS: -Wl,-rpath,.
7+
#cgo linux LDFLAGS: -Wl,-rpath,$ORIGIN
68
#include <stdlib.h>
79
#include "coralreefplayer.h"
810
extern void goCallback(enum Event, void*, void*);

0 commit comments

Comments
 (0)