|
@@ -12,6 +12,9 @@ FLUENT_BIT_CPE_ID_VENDOR = treasuredata
|
|
FLUENT_BIT_CPE_ID_PRODUCT = fluent_bit
|
|
FLUENT_BIT_CPE_ID_PRODUCT = fluent_bit
|
|
FLUENT_BIT_DEPENDENCIES = host-bison host-flex libyaml openssl
|
|
FLUENT_BIT_DEPENDENCIES = host-bison host-flex libyaml openssl
|
|
|
|
|
|
|
|
+FLUENT_BIT_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
+FLUENT_BIT_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
|
|
+
|
|
FLUENT_BIT_CONF_OPTS += \
|
|
FLUENT_BIT_CONF_OPTS += \
|
|
-DFLB_DEBUG=No \
|
|
-DFLB_DEBUG=No \
|
|
-DFLB_RELEASE=Yes \
|
|
-DFLB_RELEASE=Yes \
|
|
@@ -42,12 +45,16 @@ FLUENT_BIT_CONF_OPTS += \
|
|
FLUENT_BIT_CONF_OPTS += \
|
|
FLUENT_BIT_CONF_OPTS += \
|
|
-DCMAKE_INSTALL_SYSCONFDIR="/etc/"
|
|
-DCMAKE_INSTALL_SYSCONFDIR="/etc/"
|
|
|
|
|
|
|
|
+# Fix multiple definition of `mk_tls_*'.
|
|
|
|
+# https://github.com/fluent/fluent-bit/issues/5537
|
|
|
|
+FLUENT_BIT_CFLAGS += -fcommon
|
|
|
|
+FLUENT_BIT_CXXFLAGS += -fcommon
|
|
|
|
+
|
|
# Undefining _FILE_OFFSET_BITS here because of a "bug" with glibc fts.h
|
|
# Undefining _FILE_OFFSET_BITS here because of a "bug" with glibc fts.h
|
|
# large file support.
|
|
# large file support.
|
|
-# See https://bugzilla.redhat.com/show_bug.cgi?id=574992 for more information.
|
|
|
|
-FLUENT_BIT_CONF_OPTS += \
|
|
|
|
- -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -U_FILE_OFFSET_BITS" \
|
|
|
|
- -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -U_FILE_OFFSET_BITS"
|
|
|
|
|
|
+# https://bugzilla.redhat.com/show_bug.cgi?id=574992
|
|
|
|
+FLUENT_BIT_CFLAGS += -U_FILE_OFFSET_BITS
|
|
|
|
+FLUENT_BIT_CXXFLAGS += -U_FILE_OFFSET_BITS
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
|
|
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
|
|
FLUENT_BIT_DEPENDENCIES += musl-fts
|
|
FLUENT_BIT_DEPENDENCIES += musl-fts
|
|
@@ -60,7 +67,9 @@ FLUENT_BIT_LDFLAGS += -latomic
|
|
endif
|
|
endif
|
|
|
|
|
|
FLUENT_BIT_CONF_OPTS += \
|
|
FLUENT_BIT_CONF_OPTS += \
|
|
- -DCMAKE_EXE_LINKER_FLAGS="$(FLUENT_BIT_LDFLAGS)"
|
|
|
|
|
|
+ -DCMAKE_EXE_LINKER_FLAGS="$(FLUENT_BIT_LDFLAGS)" \
|
|
|
|
+ -DCMAKE_C_FLAGS="$(FLUENT_BIT_CFLAGS)" \
|
|
|
|
+ -DCMAKE_CXX_FLAGS="$(FLUENT_BIT_CXXFLAGS)"
|
|
|
|
|
|
define FLUENT_BIT_INSTALL_INIT_SYSV
|
|
define FLUENT_BIT_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 0755 package/fluent-bit/S99fluent-bit \
|
|
$(INSTALL) -D -m 0755 package/fluent-bit/S99fluent-bit \
|