Skip to content

Commit 2198dba

Browse files
committed
Use rdkafka-static pkg-config file for static builds (confluentinc#137, confluentinc#59)
1 parent f39f082 commit 2198dba

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

kafka/build_dynamic.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
package kafka
55

66
// #cgo pkg-config: rdkafka
7-
// #cgo LDFLAGS: -lrdkafka
87
import "C"

kafka/build_static.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33

44
package kafka
55

6-
// #cgo pkg-config: --static rdkafka
7-
// #cgo LDFLAGS: -Wl,-Bstatic -lrdkafka -Wl,-Bdynamic
6+
// #cgo pkg-config: rdkafka-static
87
import "C"

kafka/build_static_all.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
package kafka
55

6-
// #cgo pkg-config: --static rdkafka
6+
// #cgo pkg-config: rdkafka-static
77
// #cgo LDFLAGS: -static
88
import "C"

0 commit comments

Comments
 (0)