1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
From: Sebastian Ramacher <sramacher@debian.org>
Date: Mon, 16 Apr 2018 01:02:08 +0200
Subject: don't drop -g and optimization values from the call to gcc
The binaries will be stripped later anyway and CFLAGS contains the correct
flags.
Origin: vendor
Last-Update: 2011-11-12
Forwarded: no
---
setup.py | 5 -----
1 file changed, 5 deletions(-)
diff --git a/setup.py b/setup.py
index 2dca4fb..9a56100 100644
--- a/setup.py
+++ b/setup.py
@@ -125,8 +125,6 @@ class PCTBuildExt (build_ext):
self.__remove_compiler_option("-DNDEBUG")
# Choose our own optimization options
- for opt in ["-O", "-O0", "-O1", "-O2", "-O3", "-Os"]:
- self.__remove_compiler_option(opt)
if self.debug:
# Basic optimization is still needed when debugging to compile
# the libtomcrypt code.
@@ -134,10 +132,7 @@ class PCTBuildExt (build_ext):
else:
# Speed up execution by tweaking compiler options. This
# especially helps the DES modules.
- self.__add_compiler_option("-O3")
self.__add_compiler_option("-fomit-frame-pointer")
- # Don't include debug symbols unless debugging
- self.__remove_compiler_option("-g")
# Don't include profiling information (incompatible with
# -fomit-frame-pointer)
self.__remove_compiler_option("-pg")
|