Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 012171d3 authored by Jiyong Park's avatar Jiyong Park
Browse files

libselinux is dynamically linked from init

init is now dynamically linked to libselinux. This gives us about 100KB
extra space, which is valuable in the recovery partition.

Bug: 63673171
Test: m -j
Test: adb reboot recovery
Change-Id: I72c4f886cbbb9ce54f8221f05547f5b9f0e1adb0
parent c733e5af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,6 @@ cc_defaults {
        "libprotobuf-cpp-lite",
        "libpropertyinfoserializer",
        "libpropertyinfoparser",
        "libselinux",
    ],
    shared_libs: [
        "libcutils",
@@ -87,6 +86,7 @@ cc_defaults {
        "libc++",
        "libdl",
        "libz",
        "libselinux",
    ],
}

+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ LOCAL_STATIC_LIBRARIES := \
    libseccomp_policy \
    libcrypto_utils \
    libsparse \
    libselinux \
    libprocessgroup \
    libavb \
    libkeyutils \
@@ -76,6 +75,7 @@ shared_libs := \
    libcrypto \
    libdl \
    libz \
    libselinux \

ifneq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE),true)
# init is static executable for non-system-as-root devices, because the dynamic linker