On Mon, Dec 18, 2017 at 05:23:28PM +0200, Timo Sirainen wrote:
> https://dovecot.org/releases/2.3/rc/dovecot-2.3.0.rc1.tar.gz
> https://dovecot.org/releases/2.3/rc/dovecot-2.3.0.rc1.tar.gz.sig 

Some source based distros like Gentoo already enable -D_FORTIFY_SOURCE=2
by default resulting in the following warnings during build:

<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition

Please consider the attached patch to get rid of the warnings.

-- 
Eray
--- a/m4/cc_fortify.m4	2017-12-19 10:07:35.930053012 +0300
+++ b/m4/cc_fortify.m4	2017-12-19 10:08:10.223627789 +0300
@@ -8,7 +8,7 @@
       case "$host" in
         *)
           gl_COMPILER_OPTION_IF([-O2 -D_FORTIFY_SOURCE=2], [
-            CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
+            CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
             ],
             [],
             [AC_LANG_PROGRAM([[

Reply via email to