]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build-sys: do not allow --enable static
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 6 Jun 2013 14:43:19 +0000 (11:43 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 6 Jun 2013 14:48:38 +0000 (11:48 -0300)
Do the same as done in systemd by Cristian Rodríguez
<crrodriguez@opensuse.org>. We use private symbols, not namespaced. So
don't pretend we support static linking.

configure.ac

index b8845d413c7476fdfdd641f17284b84f58539267..929eb7fe81ade2d0d4172f19ef7d8c40836f3c57 100644 (file)
@@ -18,6 +18,10 @@ AM_SILENT_RULES([yes])
 LT_INIT([disable-static pic-only])
 AC_PREFIX_DEFAULT([/usr])
 
+AS_IF([test "x$enable_static" = "xyes"],
+      [AC_MSG_ERROR([--enable-static is not supported by kmod])])
+
+
 #####################################################################
 # Program checks and configurations
 #####################################################################