Reenable static binary compilation with --enable-static-bin configuration option.

This commit is contained in:
Con Kolivas 2011-03-23 09:43:17 +11:00
parent 5c9c4229dc
commit 0efcec6304
3 changed files with 12 additions and 1 deletions

View file

@ -53,6 +53,9 @@ lrzip_SOURCES = \
sha4.h
lrzip_LDADD = lzma/C/liblzma.la
if STATIC
lrzip_LDFLAGS = -all-static
endif
dist_doc_DATA = \
AUTHORS \

2
README
View file

@ -113,7 +113,7 @@ for this encryption mechanism, and there is absolutely no way of retrieving
your password should you forget it.
Q. How do I make a static build?
A. make static
A. ./configure --enable-static-bin
Q. I want the absolute maximum compression I can possibly get, what do I do?
A. Try the command line options "-Uzp 1 -L 9". This uses all available ram and

View file

@ -66,6 +66,13 @@ if test x"$ASM" = xyes; then
fi
fi
static=no
AC_ARG_ENABLE([static-bin],
[AC_HELP_STRING([--enable-static-bin],[Build statically linked binary @<:@default=no@:>@])],
[static=$enableval]
)
AM_CONDITIONAL([STATIC], [test "x$static" = "xyes"])
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/mman.h)
AC_CHECK_HEADERS(ctype.h errno.h sys/resource.h)
AC_CHECK_HEADERS(endian.h sys/endian.h arpa/inet.h)
@ -142,6 +149,7 @@ echo
echo "Configuration Options Summary:"
echo
echo " ASM................: $ASM"
echo " Static binary......: $static"
echo
echo "Compilation............: make (or gmake)"
echo " CPPFLAGS.............: $CPPFLAGS"