Skip to content

Linkage against librrd_th #28

Description

@valobanov

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions