[blfs] branch trunk updated: dovecot: force -std=gnu++17 for g++
| Newsgroups | gmane.linux.lfs.beyond.book |
|---|---|
| Message-ID | <178239174614.1650581.9907767441106215035@rivendell.linuxfromscratch.org> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository blfs.
The following commit(s) were added to refs/heads/trunk by this push:
new 8f7b6b8095 dovecot: force -std=gnu++17 for g++
8f7b6b8095 is described below
commit 8f7b6b80955fef58881d1867ea61f17204c1d50f
Author: Pierre Labastie <[email protected]>
AuthorDate: Thu Jun 25 14:42:06 2026 +0200
dovecot: force -std=gnu++17 for g++
This is needed if xapian is found, because xapian-2.0 uses C++17
features. Note that normally, version 16.1.0 of g++ without any
"-std" option uses C++20, so this shoud be ok, but configure uses
a program for testing some C++11 features that is not compatible
with C++20 (problem with some char_xx type). So configure falls
back to -std=gnu++11. Passing CXX="g++ -std=gnu++17" allows to
have the test program compile, and xapian too.
---
server/mail/dovecot.xml | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/server/mail/dovecot.xml b/server/mail/dovecot.xml
index 398d7beeb8..8b38eb2da4 100644
--- a/server/mail/dovecot.xml
+++ b/server/mail/dovecot.xml
@@ -153,14 +153,16 @@ useradd -c "Dovecot login user" -d /dev/null -u 43 \
--localstatedir=/var \
--with-systemd=no \
--docdir=/usr/share/doc/dovecot-&dovecot-version; \
- --disable-static &&
+ --disable-static \
+ CXX="g++ -std=gnu++17" &&
make</userinput></screen>
<screen revision="systemd"><userinput>./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--docdir=/usr/share/doc/dovecot-&dovecot-version; \
- --disable-static &&
+ --disable-static \
+ CXX="g++ -std=gnu++17" &&
make</userinput></screen>
<para>
@@ -181,6 +183,12 @@ make</userinput></screen>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/static-libraries.xml"/>
+ <para>
+ <parameter>CXX="g++ -std=gnu++17"</parameter>: This setting enables
+ the C++17 standard. It is needed if <xref linkend='xapian'/> is
+ installed, and does not hurt if not.
+ </para>
+
<para>
<option>--with-ldap</option>: This switch enables
<application>OpenLDAP</application> authentication support.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/blfs-book
Unsubscribe: See the above information page