[PATCH] add configure option to disable creation of .static utils

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 Makefile.am  |    5 ++++-
 configure.ac |    5 +++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index b66517a..89ff392 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -47,7 +47,10 @@ TESTSUITE := $(shell test -e @srcdir@/tests && find @srcdir@/tests -type f ! -na
 
 EXTRA_DIST = generate-modprobe.conf FAQ CODING stress_modules.sh install-with-care $(SGML) $(man_MANS) $(TESTSUITE)
 
-sbin_PROGRAMS = insmod modprobe rmmod depmod modinfo insmod.static
+sbin_PROGRAMS = insmod modprobe rmmod depmod modinfo
+if BUILD_STATIC_UTILS
+sbin_PROGRAMS += insmod.static
+endif
 bin_PROGRAMS = lsmod
 noinst_PROGRAMS=modindex
 noinst_LIBRARIES = libmodtools.a
diff --git a/configure.ac b/configure.ac
index b25cd1b..f54763b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,6 +54,11 @@ then
     AC_MSG_NOTICE([Adding gcc options: $CFLAGS])
 fi
 
+AC_ARG_ENABLE(static-utils,
+AS_HELP_STRING([--disable-static-utils], [Do not build static utils]),
+[],[enable_static_utils=yes])
+AM_CONDITIONAL(BUILD_STATIC_UTILS, test "$enable_static_utils" = "yes")
+
 AC_ARG_WITH(moddir,
 [  --with-moddir=path      Give the path for system modules directory.]
 [                         [ Defaults to /lib/modules ]],
-- 
1.6.3

--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux