I am building Chromium's _pyautolib.so file, whose generated *.mk file pulls in a particular library (liballocator.a). I understand that this particular library is pulled in because a variable is set (linux_use_tcmalloc). What I want to do is, just for this particular shared object, I want to not include liballocator.a.
I've tried the following approaches without success:
'all_dependent_settings': {
'dependencies!' : [
'../base/allocator/allocator.gyp:allocator'
]
}
and this one:
'all_dependent_settings': {
'linux_use_tcmalloc' : '0'
}
These aren't seem to be working (i.e. liballocator.a still shows up at the link line of _pyautolib.so). Do you have any suggestions on how this can be done without refactoring all the libraries and separating them out into parts which depend on liballocator and parts which don't?
Thanks,