rrd icon indicating copy to clipboard operation
rrd copied to clipboard

Linkage against librrd_th

Open valobanov opened this issue 8 years ago • 1 comments

Hello,

By default, my project links against not thread safe libbrrd that causes mess with errors from different Update() calls. Changing #cgo pkg-config: librrd directive to #cgo LDFLAGS: -lrrd_th in rrd_c.go fixes the issue. What is the suggested way to link against thread safe library when using pkg-config?

This commit switched setting of linker options to pkg-config for the reason not clear from the comment.

Thanks, Vadim

valobanov avatar Dec 07 '16 11:12 valobanov

Hi @valobanov,

The change was detailed in the associated PR: https://github.com/ziutek/rrd/pull/15.

Regards.

vbatoufflet avatar Dec 07 '16 13:12 vbatoufflet