diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2013-01-22 19:53:13 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2013-01-22 20:03:05 +0100 |
commit | 7e5bb1821f486c06a89fdefcb450e077eeb3887d (patch) | |
tree | 37842b462fe01979323d472df2eda165a02a57ea /m4 | |
parent | 580462aaa50f9466d51d501d1847e25b413e0abc (diff) |
Don't redefine _FORTIFY_SOURCE macro
If the _FORTIFY_SOURCE has been already defined, we unconditionally
redefine it, leaving us with warning/error thrown at compilation time.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/libosinfo-compile-warnings.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/libosinfo-compile-warnings.m4 b/m4/libosinfo-compile-warnings.m4 index 508ff80..fb58607 100644 --- a/m4/libosinfo-compile-warnings.m4 +++ b/m4/libosinfo-compile-warnings.m4 @@ -89,7 +89,7 @@ AC_DEFUN([LIBOSINFO_COMPILE_WARNINGS],[ AH_VERBATIM([FORTIFY_SOURCE], [/* Enable compile-time and run-time bounds-checking, and some warnings, without upsetting newer glibc. */ - #if defined __OPTIMIZE__ && __OPTIMIZE__ + #if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__ # define _FORTIFY_SOURCE 2 #endif ]) |