INN commit: trunk (configure.ac)
INN Commit
rra at isc.org
Sun Nov 22 10:49:50 UTC 2020
Date: Sunday, November 22, 2020 @ 02:49:50
Author: iulius
Revision: 10420
Add a check in configure to prevent a build with shared non-PIC libraries
Modified:
trunk/configure.ac
--------------+
configure.ac | 7 +++++++
1 file changed, 7 insertions(+)
Modified: configure.ac
===================================================================
--- configure.ac 2020-11-22 10:48:59 UTC (rev 10419)
+++ configure.ac 2020-11-22 10:49:50 UTC (rev 10420)
@@ -107,6 +107,13 @@
AC_SUBST(LIBTOOLLDDEPS)
AC_SUBST(CCOUTPUT)
+dnl If PIC objects are not wanted (--with-pic=no), an error occurs during
+dnl the build of shared libraries. Unfortunately, $pic_mode is set after
+dnl calling LT_INIT whereas AC_DISABLE_SHARED must be given before, so we
+dnl cannot automatically disable it. Just bail out with an error.
+AS_IF([test x"$pic_mode" = xno && test x"$enable_shared" = xyes],
+ [AC_MSG_ERROR([Incompatible use of --without-pic and --enable-shared])])
+
dnl Command-line options. Many of these macros just do the command-line
dnl component of a set of macros that have additional parts called later.
INN_ARG_PATHS
More information about the inn-committers
mailing list