You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even if there are no dependency .a to bundle we should still provide a librdkafka-static.a, since it
may be sufficient anyway.
This change originally stems from the RPM package librdkafka.spec including librdkafka-static.a, but
depending on Redhat distro it may or may not need static library dependencies, which in turn would
sometime not create a librdkafka-static.a, thus failing RPM packaging.
Copy file name to clipboardExpand all lines: mklove/Makefile.base
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -162,8 +162,14 @@ endif # MKL_DYNAMIC_LIBS
162
162
163
163
else # MKL_STATIC_LIBS is empty
164
164
_STATIC_FILENAME=$(LIBNAME).a
165
-
$(LIBNAME)-static.a:
166
-
@printf "$(MKL_RED)WARNING:$(MKL_YELLOW) $@: Not creating self-contained static library $@: no static libraries available/enabled$(MKL_CLR_RESET)\n"
165
+
$(LIBNAME)-static.a: $(LIBNAME).a
166
+
@printf "$(MKL_RED)WARNING:$(MKL_YELLOW) $@: No static libraries available/enabled for inclusion in self-contained static library $@: this library will be identical to $(LIBNAME).a$(MKL_CLR_RESET)\n"
167
+
ifneq ($(MKL_DYNAMIC_LIBS),)
168
+
@printf "$(MKL_RED)WARNING:$(MKL_YELLOW) $@: The following libraries were not available as static libraries and need to be linked dynamically: $(MKL_DYNAMIC_LIBS)$(MKL_CLR_RESET)\n"
0 commit comments