diff options
author | Ralph Boehme <slow@samba.org> | 2015-04-25 03:38:48 +0200 |
---|---|---|
committer | Ralph Böhme <slow@samba.org> | 2015-04-26 18:40:39 +0200 |
commit | ec085fe8b3d4f54294194f87a2875d75c4d92c20 (patch) | |
tree | 31c996ed24609bc4982b414d35855e93a71cf7bf /buildtools/wafsamba | |
parent | 49030649db3dfec5a9bc03e5dde4255a14499f16 (diff) | |
download | samba-ec085fe8b3d4f54294194f87a2875d75c4d92c20.tar.gz |
Revert "wafsamba: flags from enviroment are put before our own internal versions"
This reverts commit b2bb6aeb8057ac725f6ad12378344b201c3a3ba2.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sun Apr 26 18:40:39 CEST 2015 on sn-devel-104
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/samba_optimisation.py | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/buildtools/wafsamba/samba_optimisation.py b/buildtools/wafsamba/samba_optimisation.py index 5def5803804..51d514ec75a 100644 --- a/buildtools/wafsamba/samba_optimisation.py +++ b/buildtools/wafsamba/samba_optimisation.py @@ -287,45 +287,3 @@ def samba_before_apply_obj_vars(self): for i in v['LIBPATH']: if is_standard_libpath(v, i): v['LIBPATH'].remove(i) - -@feature('cc') -@before('apply_incpaths', 'apply_obj_vars_cc') -def samba_stash_cppflags(self): - """Fix broken waf ordering of CPPFLAGS""" - - self.env.SAVED_CPPFLAGS = self.env.CPPFLAGS - self.env.CPPFLAGS = [] - -@feature('cc') -@after('apply_incpaths', 'apply_obj_vars_cc') -def samba_pop_cppflags(self): - """append stashed user CPPFLAGS after our internally computed flags""" - - # - # Note that we don't restore the values to 'CPPFLAGS', - # but to _CCINCFLAGS instead. - # - # buildtools/wafadmin/Tools/cc.py defines the 'cc' task generator as - # '${CC} ${CCFLAGS} ${CPPFLAGS} ${_CCINCFLAGS} ${_CCDEFFLAGS} ${CC_SRC_F}${SRC} ${CC_TGT_F}${TGT}' - # - # Our goal is to effectively invert the order of ${CPPFLAGS} and - # ${_CCINCFLAGS}. - self.env.append_value('_CCINCFLAGS', self.env.SAVED_CPPFLAGS) - self.env.SAVED_CPPFLAGS = [] - -@feature('cprogram', 'cshlib', 'cstaticlib') -@before('apply_obj_vars', 'add_extra_flags') -def samba_stash_linkflags(self): - """stash away LINKFLAGS in order to fix waf's broken ordering wrt or - user LDFLAGS""" - - self.env.SAVE_LINKFLAGS = self.env.LINKFLAGS - self.env.LINKFLAGS = [] - -@feature('cprogram', 'cshlib', 'cstaticlib') -@after('apply_obj_vars', 'add_extra_flags') -def samba_pop_linkflags(self): - """after apply_obj_vars append saved LDFLAGS""" - - self.env.append_value('LINKFLAGS', self.env.SAVE_LINKFLAGS) - self.env.SAVE_LINKFLAGS = [] |