I can't see a good reason to disallow this, even though it isn't the
standard way we build libc++ for Apple platforms.
Making this work on Apple platforms requires using different flags for
--whole-archive and removing the -D flag when running ar to merge
archives because that flag isn't supported by the ar shipped on Apple
platforms. This shouldn't be an issue since the -D option appears to be
enabled by default in GNU ar.