INN commit: branches/2.6 (configure.ac)

INN Commit rra at isc.org
Sun Nov 22 10:51:08 UTC 2020


    Date: Sunday, November 22, 2020 @ 02:51:08
  Author: iulius
Revision: 10422

Add a check in configure to prevent a build with shared non-PIC libraries

Modified:
  branches/2.6/configure.ac

--------------+
 configure.ac |    7 +++++++
 1 file changed, 7 insertions(+)

Modified: configure.ac
===================================================================
--- configure.ac	2020-11-22 10:50:37 UTC (rev 10421)
+++ configure.ac	2020-11-22 10:51:08 UTC (rev 10422)
@@ -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