As mentioned in #24 the docs for the additional_libs attribute in the cc_toolchain_import rule should explicitly mention that they do not modify the command line and are simply there to add those libs to the bazel sandbox. This is required for AS_NEEDED type libraries.