From 12dc49683be594a147a124472a849287653882f3 Mon Sep 17 00:00:00 2001 From: Alexey Gladkov Date: Thu, 4 Oct 2007 14:21:44 +0800 Subject: [BUILD] Add --enable-static option to configure. Add new option to build statical linked dash. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e0a94a8..5e8f17d 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,12 @@ fi AC_MSG_RESULT(${CC_FOR_BUILD}) AC_SUBST(CC_FOR_BUILD) +AC_ARG_ENABLE(static, AS_HELP_STRING(--enable-static, \ + [Build statical linked program])) +if test "$enable_static" = "yes"; then + export LDFLAGS="-static -Wl,--fatal-warnings" +fi + dnl Checks for libraries. dnl Checks for header files. -- cgit 1.4.1