[MacPorts] #36299: base should add a dependency on a compiler if it is being used