From 1abe25537c29610f7c4c70e5fc1b997e8371cb8f Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Thu, 14 Mar 2013 12:26:03 +0100 Subject: [PATCH] kmod: fixed cross-compiling by explicitely running autoreconf Note: This fixes an issue discovered when building on a Fedora 16 build host. Snippet from the build log ----------------------------------------------------------------------------- GEN tools/insmod GEN tools/rmmod GEN tools/lsmod GEN tools/modprobe GEN tools/modinfo GEN tools/depmod /lib/libpthread.so.0: undefined reference to `__getrlimit@GLIBC_PRIVATE' /lib/libpthread.so.0: undefined reference to `__uname@GLIBC_PRIVATE' collect2: error: ld returned 1 exit status make[2]: *** [tools/kmod] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ----------------------------------------------------------------------------- --- base/kmod/kmod.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/kmod/kmod.conf b/base/kmod/kmod.conf index d746563fe..ef66a5f67 100644 --- a/base/kmod/kmod.conf +++ b/base/kmod/kmod.conf @@ -15,6 +15,9 @@ prefix= set_confopt +# always regenerate autotools files +hook_add preconf 9 'autoreconf -vfi' + # always build a static library var_append extraconfopt ' ' "--enable-static"