f7bc52f
--- pycrypto/setup.py
f7bc52f
+++ pycrypto/setup.py
f7bc52f
@@ -165,28 +165,6 @@
8e2c78d
             # Make assert() statements always work
8e2c78d
             self.__remove_compiler_option("-DNDEBUG")
8e2c78d
 
8e2c78d
-            # Choose our own optimization options
8e2c78d
-            for opt in ["-O", "-O0", "-O1", "-O2", "-O3", "-Os"]:
8e2c78d
-                self.__remove_compiler_option(opt)
8e2c78d
-            if self.debug:
8e2c78d
-                # Basic optimization is still needed when debugging to compile
8e2c78d
-                # the libtomcrypt code.
8e2c78d
-                self.__add_compiler_option("-O")
8e2c78d
-            else:
8e2c78d
-                # Speed up execution by tweaking compiler options.  This
8e2c78d
-                # especially helps the DES modules.
8e2c78d
-                self.__add_compiler_option("-O3")
8e2c78d
-                self.__add_compiler_option("-fomit-frame-pointer")
8e2c78d
-                # Don't include debug symbols unless debugging
8e2c78d
-                self.__remove_compiler_option("-g")
f7bc52f
-                # Don't include profiling information (incompatible with
f7bc52f
-                # -fomit-frame-pointer)
6e1e1b3
-                self.__remove_compiler_option("-pg")
8e2c78d
-            if USE_GCOV:
8e2c78d
-                self.__add_compiler_option("-fprofile-arcs")
8e2c78d
-                self.__add_compiler_option("-ftest-coverage")
8e2c78d
-                self.compiler.libraries += ['gcov']
8e2c78d
-
8e2c78d
         # Call the superclass's build_extensions method
8e2c78d
         build_ext.build_extensions(self)
8e2c78d