diff options
author | Dwayne C. Litzenberger <dlitz@dlitz.net> | 2012-05-24 07:41:30 -0400 |
---|---|---|
committer | Dwayne C. Litzenberger <dlitz@dlitz.net> | 2012-05-24 07:41:30 -0400 |
commit | daeea7879651877c771b2bb3e44b9e5d3379e395 (patch) | |
tree | 11d52871745b38d09ae04054aae4f03fff3c6adb | |
parent | cc990c02f3297342c6f059a8795b9790de0751f2 (diff) | |
download | pycrypto-daeea7879651877c771b2bb3e44b9e5d3379e395.tar.gz |
Remove -std=c99 when building using aCC compiler HP-UX
Bug report: https://bugs.launchpad.net/pycrypto/+bug/980358
-rw-r--r-- | setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -117,6 +117,10 @@ class PCTBuildExt (build_ext): # Tell GCC to compile using the C99 standard. self.__add_compiler_option("-std=c99") + # ... but don't tell that to the aCC compiler on HP-UX + if self.compiler.compiler_so[0] == 'cc' and sys.platform.startswith('hp-ux'): + self.__remove_compiler_option("-std=c99") + # Make assert() statements always work self.__remove_compiler_option("-DNDEBUG") |