From 88a170dbd63965b8403b6b40b12ded4f82d89ccd Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 21 Apr 2012 02:53:23 -0400 Subject: [PATCH] libkmod: make sure to export kmod_log 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. --- libkmod/libkmod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c index 36ca629..74fd9ef 100644 --- a/libkmod/libkmod.c +++ b/libkmod/libkmod.c @@ -85,9 +85,9 @@ struct kmod_ctx { 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;