Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linkage against librrd_th #28

Open
valobanov opened this issue Dec 7, 2016 · 1 comment
Open

Linkage against librrd_th #28

valobanov opened this issue Dec 7, 2016 · 1 comment

Comments

@valobanov
Copy link
Contributor

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

@vbatoufflet
Copy link
Contributor

Hi @valobanov,

The change was detailed in the associated PR: #15.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants