--- ./tools/gyp/pylib/gyp/generator/make.py 2016-01-20 19:08:27.000000000 -0600 +++ ./tools/gyp/pylib/gyp/generator/make.new.py 2016-01-22 14:34:20.000000000 -0600 @@ -1211,6 +1211,7 @@ includes = config.get('include_dirs') if includes: includes = map(Sourceify, map(self.Absolutify, includes)) + includes = reversed(includes) self.WriteList(includes, 'INCS_%s' % configname, prefix='-I') compilable = filter(Compilable, sources)