kind: compose

description: |
  stage3-sysroot: clean minimal shell environment + C/C++ toolchain

  Binaries of this are released to https://ostree.baserock.org/releases/ and
  are in turn used to seed subsequent rebuilds of the Baserock reference
  systems (via gnu-toolchain/base.bst).

depends:
- filename: gnu-toolchain.bst
  type: build

config:
  exclude: [ debug, doc, locale ]

public:
  bst:
    integration-commands:
      # Remove libtool's `.la` files. These are not needed for the base
      # platform to work, and actually break cross-compilation of stage2-gcc
      # somehow -- /lib64/libstdc++.so gets in to the dependency list of
      # cross-built C++ libraries, causing disaster.
      - find ./usr/lib ./usr/lib64 ./usr/libexec -name lib\*.la -delete
