0001-configure.ac-do-not-force-O2.patch 982 B

123456789101112131415161718192021222324252627282930
  1. From 7472764fe19cb3eea77f21cc2859859b8ac62085 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Mon, 14 Aug 2017 23:36:36 +0200
  4. Subject: [PATCH] configure.ac: do not force -O2
  5. The user may want to provide its own set of optimization flags, and
  6. therefore forcing -O2 should not be done.
  7. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  8. Submitted-upstream: https://github.com/libspatialindex/libspatialindex/pull/101
  9. ---
  10. configure.ac | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/configure.ac b/configure.ac
  13. index dc5e49f..2e2aa68 100644
  14. --- a/configure.ac
  15. +++ b/configure.ac
  16. @@ -53,7 +53,7 @@ if test "x$enable_debug" = "xyes"; then
  17. CXXFLAGS="$CXXFLAGS -g -DDEBUG"
  18. AC_MSG_RESULT(checking wether debug information is enabled... yes)
  19. else
  20. - CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
  21. + CXXFLAGS="$CXXFLAGS -DNDEBUG"
  22. AC_MSG_RESULT(checking wether debug information is enabled... no)
  23. fi
  24. --
  25. 2.9.4