0001-SConstruct-do-not-force-O2-by-default.patch 827 B

1234567891011121314151617181920212223242526272829
  1. From eb7cce5dbb53a64cf55ac0d9a7fa4dcbebd4b173 Mon Sep 17 00:00:00 2001
  2. From: Waldemar Brodkorb <wbx@openadk.org>
  3. Date: Mon, 14 Aug 2017 23:24:38 +0200
  4. Subject: [PATCH] SConstruct: do not force -O2 by default
  5. -O2 can cause problems on some architectures, so do not force it by
  6. default.
  7. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  8. ---
  9. SConstruct | 2 --
  10. 1 file changed, 2 deletions(-)
  11. diff --git a/SConstruct b/SConstruct
  12. index fe444a2..93d91a4 100644
  13. --- a/SConstruct
  14. +++ b/SConstruct
  15. @@ -330,8 +330,6 @@ if not 'CCFLAGS' in os.environ:
  16. # Should we build with optimisation?
  17. if env['debug'] or env['coveraging']:
  18. env.Append(CCFLAGS=['-O0'])
  19. - else:
  20. - env.Append(CCFLAGS=['-O2'])
  21. # Get a slight speedup by not doing automatic RCS and SCCS fetches.
  22. env.SourceCode('.', None)
  23. --
  24. 2.9.4