diff options
author | Stef Walter <stef@memberwebs.com> | 2007-06-27 00:26:01 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2007-06-27 00:26:01 +0000 |
commit | 992d6a303c27e6155e7b554cef4cc0eefea1f877 (patch) | |
tree | 87f8be981a7856ab9c59ef8474144d6f5ba57498 | |
parent | 35b75975ece6f7e40447efdecbb6163d79e0323d (diff) |
Enable static compilation of components
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0bbaa44..4789027 100644 --- a/configure.ac +++ b/configure.ac @@ -51,6 +51,16 @@ if test "$enable_debug" = "yes"; then echo "enabling debug compile mode" fi +# Static compilation +AC_ARG_ENABLE(static, + AC_HELP_STRING([--enable-static], + [Compile binaries in debug mode])) + +if test "$enable_static" = "yes"; then + CFLAGS="$CFLAGS -static" + echo "enabling static compile mode" +fi + # Checks for libraries. AC_CHECK_LIB([kvm], [kvm_open], , [ echo "ERROR: Must have FreeBSD 4.x or higher"; exit 1]) |