[MacPorts] #40188: python27 uses -bundle, clang++ wants -dynamiclib instead