[vlc-commits] build: Undef _FORTIFY_SOURCE before setting it
Luca Barbato
git at videolan.org
Sun Nov 3 19:14:18 CET 2013
vlc | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sun Sep 29 05:32:35 2013 +0000| [502ad774c14e25b2b3430f4c26ca2d0b4f5f7991] | committer: Jean-Baptiste Kempf
build: Undef _FORTIFY_SOURCE before setting it
It is commonly present as part of the compiler defaults in some
distributions.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=502ad774c14e25b2b3430f4c26ca2d0b4f5f7991
---
configure.ac | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 4a8099c..8e52773 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,7 +54,13 @@ dnl Check for tools
dnl
AC_PROG_CC_C99
AC_USE_SYSTEM_EXTENSIONS
-AC_DEFINE([_FORTIFY_SOURCE], 2, [Define to 2 to get glibc warnings.])
+AH_VERBATIM([_FORTIFY_SOURCE],[
+#ifdef _FORTIFY_SOURCE
+#/**/undef/**/ _FORTIFY_SOURCE
+#define _FORTIFY_SOURCE 2
+#endif
+])
+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-commits
mailing list