summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-11-19 16:32:14 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2018-11-19 16:32:14 +0100
commit2cc4f280ed4ac8eb19d0acbf79db28256894ebd4 (patch)
tree5356912621ebe4e86a648f8984d249ef417a58c6 /configure.ac
parentMerge pull request #3341 from donaldsharp/unneeded (diff)
downloadfrr-2cc4f280ed4ac8eb19d0acbf79db28256894ebd4.tar.xz
frr-2cc4f280ed4ac8eb19d0acbf79db28256894ebd4.zip
build: refuse non-working linking options
We only support: * --enable-shared --disable-static --disable-static-bin * --enable-shared --enable-static --disable-static-bin * --enable-shared --enable-static --enable-static-bin (The second option is not particularly useful.) Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 13f6fdab7..c925509fa 100755
--- a/configure.ac
+++ b/configure.ac
@@ -334,6 +334,12 @@ _LT_CONFIG_LIBTOOL([
])
if test "$enable_static_bin" = "yes"; then
AC_LDFLAGS="-static"
+ if test "$enable_static" != "yes"; then
+ AC_MSG_ERROR([The --enable-static-bin option must be combined with --enable-static.])
+ fi
+fi
+if test "$enable_shared" != "yes"; then
+ AC_MSG_ERROR([FRR cannot be built with --disable-shared. If you want statically linked daemons, use --enable-shared --enable-static --enable-static-bin])
fi
AC_SUBST([AC_LDFLAGS])
AM_CONDITIONAL([STATIC_BIN], [test "x$enable_static_bin" = "xyes"])