diff options
author | Pavel Reichl <preichl@redhat.com> | 2015-02-25 12:06:07 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-02 10:28:01 +0100 |
commit | cabc0511873778fddc318951d1a329c2a2945731 (patch) | |
tree | 522887fb1f60d84b199c3ced74c6a667ad6cb1dc /contrib/fedora | |
parent | 18e24f20a4aef66a4899367a0775a98ab2acd18e (diff) | |
download | sssd-cabc0511873778fddc318951d1a329c2a2945731.tar.gz sssd-cabc0511873778fddc318951d1a329c2a2945731.tar.xz sssd-cabc0511873778fddc318951d1a329c2a2945731.zip |
BUILD: fix chmake not to generate warning
Generated warning:
/usr/include/features.h:328:4: warning: warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
warning _FORTIFY_SOURCE requires compiling with optimization (-O)
Macro _FORTIFY_SOURCE requiers to be compiled with optimization. But
the problem with bash function chmake is that it turns off optimization.
To avoid generating warning chmake should undefine macro
_FORTIFY_SOURCE.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'contrib/fedora')
-rw-r--r-- | contrib/fedora/bashrc_sssd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/fedora/bashrc_sssd b/contrib/fedora/bashrc_sssd index 7301b520c..ec4e91eab 100644 --- a/contrib/fedora/bashrc_sssd +++ b/contrib/fedora/bashrc_sssd @@ -78,7 +78,8 @@ SSS_WARNINGS='-Wall \ # them. This builds with optimizations turned off and GDB debugging symbols. chmake() { - make V=0 CFLAGS+="-ggdb3 -O0 $SSS_WARNINGS ${SSS_WERROR-}" \ + make V=0 \ + CFLAGS+="-ggdb3 $SSS_WARNINGS ${SSS_WERROR-} -O0 -Wp,-U_FORTIFY_SOURCE" \ -j$PROCESSORS check "$@" } |