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.
This commit is contained in:
Mike Frysinger 2012-04-21 02:53:23 -04:00 committed by Lucas De Marchi
parent 46684bc2d9
commit 88a170dbd6

View File

@ -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;