If we don't have --gc-sections support, linking kmod fails:
libkmod/.libs/libkmod-util.a(libkmod-util.o): In function 'underscores':
libkmod/libkmod-util.c:117: undefined reference to 'kmod_log'
This is because kmod_log is missing the export define, even though it's
already listed in the exported symbol list.
unsigned long long indexes_stamp[_KMOD_INDEX_MODULES_SIZE];
};
-void kmod_log(const struct kmod_ctx *ctx,
- int priority, const char *file, int line, const char *fn,
- const char *format, ...)
+KMOD_EXPORT void kmod_log(const struct kmod_ctx *ctx,
+ int priority, const char *file, int line,
+ const char *fn, const char *format, ...)
{
va_list args;