Differentiate between internal and external flags.

External flags are used by dependents, whereas internal flags are used only
when building components belonging to that particular package group or package.