From daeea7879651877c771b2bb3e44b9e5d3379e395 Mon Sep 17 00:00:00 2001 From: "Dwayne C. Litzenberger" Date: Thu, 24 May 2012 07:41:30 -0400 Subject: Remove -std=c99 when building using aCC compiler HP-UX Bug report: https://bugs.launchpad.net/pycrypto/+bug/980358 --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index daa3a4d..7506b8f 100644 --- a/setup.py +++ b/setup.py @@ -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") -- cgit v1.2.1