Skip to content

Commit 72d75b0

Browse files
bigbiffGerrit Code Review
authored andcommitted
Merge "ldconfig: add /sbin to search.paths" into android-9.0
2 parents 9bf7335 + 8d70eb6 commit 72d75b0

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Android.mk

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,19 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28; echo $$?),0)
515515
endif
516516
endif
517517

518+
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0)
519+
TWRP_REQUIRED_MODULES += ld.config.txt
520+
ifeq ($(BOARD_VNDK_RUNTIME_DISABLE),true)
521+
LOCAL_POST_INSTALL_CMD += \
522+
sed '0,/^namespace.default.search.paths\s\{1,\}/!b;//a\namespace.default.search.paths += \/sbin' \
523+
$(TARGET_OUT_ETC)/ld.config.vndk_lite.txt > $(TARGET_RECOVERY_ROOT_OUT)/sbin/ld.config.txt;
524+
else
525+
LOCAL_POST_INSTALL_CMD += \
526+
sed '0,/^namespace.default.search.paths\s\{1,\}/!b;//a\namespace.default.search.paths += \/sbin' \
527+
$(TARGET_OUT_ETC)/ld.config.txt > $(TARGET_RECOVERY_ROOT_OUT)/sbin/ld.config.txt;
528+
endif
529+
endif
530+
518531
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 25; echo $$?),0)
519532
TWRP_REQUIRED_MODULES += file_contexts_text
520533
endif

prebuilt/Android.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0)
370370
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvintf.so
371371
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtinyxml2.so
372372
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.token@1.0.so
373-
RELINK_SOURCE_FILES += $(TARGET_OUT_ETC)/ld.config.txt
374373
ifneq ($(wildcard system/core/libkeyutils/Android.bp),)
375374
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeyutils.so
376375
endif

0 commit comments

Comments
 (0)