File: dont-drop-g.patch

package info (click to toggle)
python-crypto 2.6.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,984 kB
  • sloc: ansic: 12,455; python: 10,473; sh: 41; makefile: 16
file content (32 lines) | stat: -rw-r--r-- 1,383 bytes parent folder | download | duplicates (3)
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
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.
Author: Sebastian Ramacher <sramacher@debian.org>
Origin: vendor
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")