Provide way for buildflags for various languages to be configured

Currently in makepkg.conf, we have support for specifying build flags for C/C++ and Rust (as well as debug flags). There are many other languages that would like their flags configured in a consistent way, and potential additions to what we already support. This will make makepkg.conf unwieldy.

Example requests:

To achieve this we need both an extensible makepkg.conf and a way to extend libmakepkg to handle the relevant build flags

  • Support @sysconfdir@/makepkg.d and source makepkg.d/*.conf.
  • Handle the additional variables in libmakepkg
    • buildenv/buildflags.sh.in
    • buildenv/debugflags.sh.in
    • lint_config/variable.sh.in (?)

Flyspray references:

Edited by Allan McRae
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information