0

add check for el5 before using extra gcc arg

This commit is contained in:
aheadley
2012-03-04 16:38:44 -05:00
parent 3bb14f01e4
commit 08c0ee6100

View File

@@ -268,7 +268,9 @@ class CustomBuildExt(build_ext):
e.extra_compile_args.append("-Wno-unused-variable") # quell some annoying warnings
e.extra_compile_args.append("-Wno-unused-function") # quell some annoying warnings
e.extra_compile_args.append("-Wdeclaration-after-statement")
e.extra_compile_args.append("-Werror=declaration-after-statement")
p = platform.linux_distribution()
if not (p[0] == 'CentOS' and p[1][0] == '5'):
e.extra_compile_args.append("-Werror=declaration-after-statement")
# build in place, and in the build/ tree