build fails on AIX(-std=c99 is not valid)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python-Crypto |
New
|
Undecided
|
Unassigned |
Bug Description
When building on AIX using the xlc family of compilers, -std=c99 is not
valid. Instead it should be -qlanglvl=stdc99. Here is a patch to
setup.py to test and apply the change.
$ diff -u setup.py ../../pycrypto-
--- setup.py 2013-10-14 17:38:10.000000000 -0400
+++ ../../pycrypto-
-0400
@@ -118,8 +118,12 @@
# ... but don't tell that to the aCC compiler on HP-UX
+ # or the xlc compiler on AIX
if self.compiler.
sys.platform.
+ elif self.compiler.
sys.platform.
+ self.__
+ self.__
# Make assert() statements always work