buildtools/wafsamba: use cflags instead of ccflags for waf 2.0
authorAlexander Bokovoy <ab@samba.org>
Wed, 27 Jun 2018 13:44:12 +0000 (16:44 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Sep 2018 04:37:27 +0000 (06:37 +0200)
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_autoconf.py

index 97d501232564bcf757df4218caef1dbaf8296216..02fbeecd75ed7f7b8113737e1bf7112fa6833e6a 100644 (file)
@@ -491,7 +491,7 @@ def CHECK_CFLAGS(conf, cflags, fragment='int main(void) { return 0; }\n'):
                       execute=0,
                       mandatory=False,
                       type='nolink',
-                      ccflags=check_cflags,
+                      cflags=check_cflags,
                       msg="Checking compiler accepts %s" % cflags)
 
 @conf
@@ -690,7 +690,7 @@ def SAMBA_CONFIG_H(conf, path=None):
                                     }
                                     ''',
                                     execute=0,
-                                    ccflags=[ '-Werror', '-Wp,-D_FORTIFY_SOURCE=2', stack_protect_flag],
+                                    cflags=[ '-Werror', '-Wp,-D_FORTIFY_SOURCE=2', stack_protect_flag],
                                     mandatory=False,
                                     msg='Checking if compiler accepts %s' % (stack_protect_flag))
         if flag_supported:
@@ -708,7 +708,7 @@ def SAMBA_CONFIG_H(conf, path=None):
                                 }
                                 ''',
                                 execute=0,
-                                ccflags=[ '-Werror', '-fstack-clash-protection'],
+                                cflags=[ '-Werror', '-fstack-clash-protection'],
                                 mandatory=False,
                                 msg='Checking if compiler accepts -fstack-clash-protection')
     if flag_supported: