Skip to content

Commit

Permalink
Use rdkafka-static pkg-config file for static builds (#137, #59)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed Mar 13, 2018
1 parent f39f082 commit 2198dba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion kafka/build_dynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
package kafka

// #cgo pkg-config: rdkafka
// #cgo LDFLAGS: -lrdkafka
import "C"
3 changes: 1 addition & 2 deletions kafka/build_static.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@

package kafka

// #cgo pkg-config: --static rdkafka
// #cgo LDFLAGS: -Wl,-Bstatic -lrdkafka -Wl,-Bdynamic
// #cgo pkg-config: rdkafka-static
import "C"
2 changes: 1 addition & 1 deletion kafka/build_static_all.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

package kafka

// #cgo pkg-config: --static rdkafka
// #cgo pkg-config: rdkafka-static
// #cgo LDFLAGS: -static
import "C"

0 comments on commit 2198dba

Please sign in to comment.