[vlc-devel] [PATCH] build: Undef _FORTIFY_SOURCE before setting it

Luca Barbato lu_zero at gentoo.org
Sun Sep 29 08:32:35 CEST 2013

It is commonly present as part of the compiler defaults in some

I forgot to send it since looong ago...

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

diff --git a/configure.ac b/configure.ac
index 3f6ab28..8da9722 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,7 +54,13 @@ dnl Check for tools
-AC_DEFINE([_FORTIFY_SOURCE], 2, [Define to 2 to get glibc warnings.])
+#/**/undef/**/ _FORTIFY_SOURCE
+#define _FORTIFY_SOURCE 2
+dnl AC_DEFINE([_FORTIFY_SOURCE], 2, [Define to 2 to get glibc warnings.])
 AC_DEFINE([_FILE_OFFSET_BITS], 64, [Define to 64 for large files support.])
 AC_DEFINE([_REENTRANT],, [Define to expose reentrant functions.])
 AC_DEFINE([_THREAD_SAFE],, [Same as _REENTANT for some other OSes.])

More information about the vlc-devel mailing list