diff --git a/setup.py b/setup.py index d4dc1e73..ff39cffe 100644 --- a/setup.py +++ b/setup.py @@ -18,10 +18,16 @@ 'test': TEST_DEPENDENCIES, } +system = platform.uname().system CFLAGS = ['-O2'] -if platform.uname().system != 'Windows': - CFLAGS.extend(['-std=c99', '-fsigned-char', '-Wall', - '-Wsign-compare', '-Wconversion']) + +if system == 'AIX': + CFLAGS.extend(['-qlanglvl=stdc99', '-qchars']) +elif system == 'SUNOS': + CFLAGS.extend(['-xc99']) # -xchar=s is the default +elif system != 'Windows': + CFLAGS.extend(['-std=c99', '-fsigned-char', '-Wall', + '-Wsign-compare', '-Wconversion']) with open(os.path.join(