diff --git a/build/jam/BuildFeatureRules b/build/jam/BuildFeatureRules index af51fcd817..04673693e5 100644 --- a/build/jam/BuildFeatureRules +++ b/build/jam/BuildFeatureRules @@ -155,8 +155,9 @@ rule EnableBuildFeatures features : specification features = [ FQualifiedBuildFeatureName $(features) ] ; - if ! $(specification) - || [ FMatchesBuildFeatures $(specification) ] { + if ! $(HAIKU_BUILD_FEATURE_$(feature:U)_ENABLED) + && ( ! $(specification) + || [ FMatchesBuildFeatures $(specification) ] ) { local feature ; for feature in $(features) { HAIKU_BUILD_FEATURES += $(feature) ;