mirror_zfs/config
Etienne Dechamps df7cc5bc71 Fake modpost stage for LINUX_COMPILE.
Currently, when building a test case, we're compiling an entire Linux
module from beginning to end. This includes the MODPOST stage, which
generates a "conftest.mod.c" file with some boilerplate module
declaration code.

This poses a problem when configuring for built-in on kernels which have
loadable module support disabled. In this case conftest.mod.c is
referencing disabled code, resulting in a compilation failure, thus
breaking the tests.

This patch fixes the issue by faking the modpost stage when the
--enable-linux-builtin option is provided.  It does so by forcing the
modpost command to be /bin/true, and using an empty conftest.mod.c file.
The test module still compiles fine, although the result isn't loadable,
but we don't really care at this point.

Note it is important to preserve the modpost stage when building out of
tree.  This allows for the posibility of configure checks to leverage
this phase to identify GPL-only symbols.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue zfsonlinux/zfs#851
2012-07-26 15:12:10 -07:00
..
arch.am Don't build packages that haven't been selected. 2012-07-26 14:54:32 -07:00
config.awk Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
config.guess Move vendor check to spl-build.m4 2010-09-02 16:12:02 -07:00
config.sub Move vendor check to spl-build.m4 2010-09-02 16:12:02 -07:00
deb.am Don't build packages that haven't been selected. 2012-07-26 14:54:32 -07:00
depcomp Move vendor check to spl-build.m4 2010-09-02 16:12:02 -07:00
install-sh Move vendor check to spl-build.m4 2010-09-02 16:12:02 -07:00
ltmain.sh Refresh autogen.sh products 2010-11-30 10:36:58 -08:00
missing Move vendor check to spl-build.m4 2010-09-02 16:12:02 -07:00
rpm.am Don't build packages that haven't been selected. 2012-07-26 14:54:32 -07:00
Rules.am Support custom build directories 2010-09-05 21:49:05 -07:00
spl-build.m4 Fake modpost stage for LINUX_COMPILE. 2012-07-26 15:12:10 -07:00
spl-meta.m4 Public Release Prep 2010-05-17 15:18:00 -07:00
tgz.am Don't build packages that haven't been selected. 2012-07-26 14:54:32 -07:00