build: Support non-standard ldso in executables

This commit is contained in:
klzgrad 2019-11-30 22:23:52 +08:00
parent ffbbd346a6
commit c0388a3af4

View File

@ -108,6 +108,11 @@ config("executable_config") {
"-Wl,--disable-new-dtags",
]
}
# Needed for non-standard ldso on OpenWRT
if (current_toolchain == default_toolchain && ldso_path != "") {
ldflags += [ "-Wl,--dynamic-linker=${ldso_path}" ]
}
}
# Settings for shared libraries.