diff options
author | Mike Seplowitz <mseplowitz@bloomberg.net> | 2015-01-13 01:53:14 (GMT) |
---|---|---|
committer | Mike Seplowitz <mseplowitz@bloomberg.net> | 2015-08-19 12:43:59 (GMT) |
commit | cdab57de00ab7ce157f1fdd601ce242588fcadce (patch) | |
tree | e22fc97286d2766c596108f13ba49d27a30f8c37 /configure.py | |
parent | 94c10a6a18ceadf78d27245ce389610c67a7cf2e (diff) | |
download | Ninja-cdab57de00ab7ce157f1fdd601ce242588fcadce.zip Ninja-cdab57de00ab7ce157f1fdd601ce242588fcadce.tar.gz Ninja-cdab57de00ab7ce157f1fdd601ce242588fcadce.tar.bz2 |
Fix getopt for AIX
AIX supplies getopt but not getopt_long.
We can't use the embedded getopt implementation, since the constness of its
arguments doesn't match the AIX system routine.
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.py b/configure.py index fcea72a..611030f 100755 --- a/configure.py +++ b/configure.py @@ -494,6 +494,8 @@ if platform.is_windows(): objs += cc('getopt') else: objs += cxx('subprocess-posix') +if platform.is_aix(): + objs += cc('getopt') if platform.is_msvc(): ninja_lib = n.build(built('ninja.lib'), 'ar', objs) else: |