File: dont-drop-g.patch

package info (click to toggle)
python-crypto 2.6-4%2Bdeb7u3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,752 kB
  • sloc: ansic: 12,455; python: 10,474; makefile: 42; sh: 5
file content (31 lines) | stat: -rw-r--r-- 1,365 bytes parent folder | download
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
Description: 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: Sebastian Ramacher <s.ramacher@gmx.at>
Last-Update: 2011-11-12
Forwarded: no

diff --git a/setup.py b/setup.py
index cda9950..b6ae68c 100644
--- a/setup.py
+++ b/setup.py
@@ -166,8 +166,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.
@@ -175,10 +173,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")