mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
Add new configure option --enable-fully-static to enable full static build if
requested; in relation to #91.
This commit is contained in:
parent
21472c2393
commit
941b324187
3 changed files with 46 additions and 4 deletions
25
configure
vendored
25
configure
vendored
|
|
@ -872,6 +872,7 @@ with_libevent
|
||||||
with_libexpat
|
with_libexpat
|
||||||
with_libhiredis
|
with_libhiredis
|
||||||
enable_static_exe
|
enable_static_exe
|
||||||
|
enable_fully_static
|
||||||
enable_lock_checks
|
enable_lock_checks
|
||||||
enable_allsymbols
|
enable_allsymbols
|
||||||
enable_dnstap
|
enable_dnstap
|
||||||
|
|
@ -1559,7 +1560,8 @@ Optional Features:
|
||||||
--enable-tfo-client Enable TCP Fast Open for client mode
|
--enable-tfo-client Enable TCP Fast Open for client mode
|
||||||
--enable-tfo-server Enable TCP Fast Open for server mode
|
--enable-tfo-server Enable TCP Fast Open for server mode
|
||||||
--enable-static-exe enable to compile executables statically against
|
--enable-static-exe enable to compile executables statically against
|
||||||
(event) libs, for debug purposes
|
(event) uninstalled libs, for debug purposes
|
||||||
|
--enable-fully-static enable to compile fully static
|
||||||
--enable-lock-checks enable to check lock and unlock calls, for debug
|
--enable-lock-checks enable to check lock and unlock calls, for debug
|
||||||
purposes
|
purposes
|
||||||
--enable-allsymbols export all symbols from libunbound and link binaries
|
--enable-allsymbols export all symbols from libunbound and link binaries
|
||||||
|
|
@ -19394,7 +19396,7 @@ _ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set static linking if requested
|
# set static linking for uninstalled libraries if requested
|
||||||
|
|
||||||
staticexe=""
|
staticexe=""
|
||||||
# Check whether --enable-static-exe was given.
|
# Check whether --enable-static-exe was given.
|
||||||
|
|
@ -19416,6 +19418,25 @@ if test x_$enable_static_exe = x_yes; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set full static linking if requested
|
||||||
|
# Check whether --enable-fully-static was given.
|
||||||
|
if test "${enable_fully_static+set}" = set; then :
|
||||||
|
enableval=$enable_fully_static;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x_$enable_fully_static = x_yes; then
|
||||||
|
staticexe="-all-static"
|
||||||
|
if test "$on_mingw" = yes; then
|
||||||
|
# for static compile, include gdi32 and zlib here.
|
||||||
|
if echo $LIBS | grep 'lgdi32' >/dev/null; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
LIBS="$LIBS -lgdi32"
|
||||||
|
fi
|
||||||
|
LIBS="$LIBS -lz"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# set lock checking if requested
|
# set lock checking if requested
|
||||||
# Check whether --enable-lock_checks was given.
|
# Check whether --enable-lock_checks was given.
|
||||||
if test "${enable_lock_checks+set}" = set; then :
|
if test "${enable_lock_checks+set}" = set; then :
|
||||||
|
|
|
||||||
21
configure.ac
21
configure.ac
|
|
@ -1299,11 +1299,11 @@ if test x_$withval = x_yes -o x_$withval != x_no; then
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set static linking if requested
|
# set static linking for uninstalled libraries if requested
|
||||||
AC_SUBST(staticexe)
|
AC_SUBST(staticexe)
|
||||||
staticexe=""
|
staticexe=""
|
||||||
AC_ARG_ENABLE(static-exe, AC_HELP_STRING([--enable-static-exe],
|
AC_ARG_ENABLE(static-exe, AC_HELP_STRING([--enable-static-exe],
|
||||||
[ enable to compile executables statically against (event) libs, for debug purposes ]),
|
[ enable to compile executables statically against (event) uninstalled libs, for debug purposes ]),
|
||||||
, )
|
, )
|
||||||
if test x_$enable_static_exe = x_yes; then
|
if test x_$enable_static_exe = x_yes; then
|
||||||
staticexe="-static"
|
staticexe="-static"
|
||||||
|
|
@ -1319,6 +1319,23 @@ if test x_$enable_static_exe = x_yes; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set full static linking if requested
|
||||||
|
AC_ARG_ENABLE(fully-static, AC_HELP_STRING([--enable-fully-static],
|
||||||
|
[ enable to compile fully static ]),
|
||||||
|
, )
|
||||||
|
if test x_$enable_fully_static = x_yes; then
|
||||||
|
staticexe="-all-static"
|
||||||
|
if test "$on_mingw" = yes; then
|
||||||
|
# for static compile, include gdi32 and zlib here.
|
||||||
|
if echo $LIBS | grep 'lgdi32' >/dev/null; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
LIBS="$LIBS -lgdi32"
|
||||||
|
fi
|
||||||
|
LIBS="$LIBS -lz"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# set lock checking if requested
|
# set lock checking if requested
|
||||||
AC_ARG_ENABLE(lock_checks, AC_HELP_STRING([--enable-lock-checks],
|
AC_ARG_ENABLE(lock_checks, AC_HELP_STRING([--enable-lock-checks],
|
||||||
[ enable to check lock and unlock calls, for debug purposes ]),
|
[ enable to check lock and unlock calls, for debug purposes ]),
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
23 October 2019: George
|
||||||
|
- Add new configure option `--enable-fully-static` to enable full static
|
||||||
|
build if requested; in relation to #91.
|
||||||
|
|
||||||
23 October 2019: Wouter
|
23 October 2019: Wouter
|
||||||
- Merge #97: manpage: Add missing word on unbound.conf,
|
- Merge #97: manpage: Add missing word on unbound.conf,
|
||||||
from Erethon.
|
from Erethon.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue