mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 01:00:41 +01:00
kafka: fix building modules with static librdkafka
Because of changes in commit 7305c047db,
the kafka modules were not build with static librdkafka
regarding of --enable-kafka-static.
Also added missing libraries needed for building with newer
static librdkafka.
closes: https://github.com/rsyslog/rsyslog/issues/5025
This commit is contained in:
parent
d0bb52a5b2
commit
01468e88f8
@ -6,13 +6,13 @@ omkafka_la_LDFLAGS = -module -avoid-version
|
||||
omkafka_la_CPPFLAGS = $(RSRT_CFLAGS) $(PTHREADS_CFLAGS) -D MODNAME=omkafka
|
||||
else
|
||||
omkafka_la_SOURCES = omkafka.c
|
||||
if ENABLE_KAFKA_STATIC
|
||||
omkafka_la_LDFLAGS = -module -avoid-version -Wl,--whole-archive -l:librdkafka-static.a -Wl,--no-whole-archive -ldl -lresolv -lcurl -lssl -lpthread -lcrypto -lsasl2 -lz -llz4 -lrt -lm
|
||||
else
|
||||
omkafka_la_LDFLAGS = -module -avoid-version $(LIBRDKAFKA_LIBS) -lm
|
||||
endif
|
||||
omkafka_la_CPPFLAGS = $(RSRT_CFLAGS) $(PTHREADS_CFLAGS)
|
||||
endif
|
||||
|
||||
if ENABLE_KAFKA_STATIC
|
||||
omkafka_la_LDFLAGS = -module -avoid-version -Wl,--whole-archive -l:librdkafka.a -Wl,--no-whole-archive -lssl -lpthread -lcrypto -lsasl2 -lz -llz4 -lrt -lm
|
||||
endif
|
||||
omkafka_la_LIBADD =
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user