Skip to content

Commit ad03700

Browse files
committed
rdb: fix LDFLAGS
1 parent 4d17a31 commit ad03700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/rdb/cgo_redis.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ package rdb
1111
// #cgo linux LDFLAGS: -lrt
1212
//
1313
// #cgo use_jemalloc CFLAGS: -DUSE_JEMALLOC
14-
// #cgo use_jemalloc CFLAGS: -I../../third_party/jemalloc/include/
15-
// #cgo use_jemalloc LDFLAGS: -L../../third_party/jemalloc/lib/ -ljemalloc_pic
14+
// #cgo use_jemalloc CFLAGS: -I${SRCDIR}/../../third_party/jemalloc/include/
15+
// #cgo use_jemalloc LDFLAGS: -L${SRCDIR}/../../third_party/jemalloc/lib/ -ljemalloc_pic -ldl
1616
//
1717
// #include "cgo_redis.h"
1818
//

0 commit comments

Comments
 (0)