diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go index 11569a3b52d..c56c36b83a0 100644 --- a/build/soong/android/variable.go +++ b/build/soong/android/variable.go @@ -1,6 +1,10 @@ package android type Product_variables struct { + Needs_text_relocations struct { + Cppflags []string + } } type ProductVariables struct { + Needs_text_relocations *bool `json:",omitempty"` } diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk index ac7e900bcb9..331f123c37c 100644 --- a/build/soong/soong_config.mk +++ b/build/soong/soong_config.mk @@ -4,5 +4,6 @@ lineage_soong: $(hide) (\ echo '{'; \ echo '"Lineage": {'; \ + echo ' "Needs_text_relocations": $(if $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)),true,false)'; \ echo '},'; \ echo '') > $(SOONG_VARIABLES_TMP)