Android.mk: Provide a custom entry name to ensure meson checks succeed
authorAlessandro Astone <ales.astone@gmail.com>
Sun, 24 Jul 2022 19:10:41 +0000 (21:10 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 5 Sep 2022 22:10:07 +0000 (22:10 +0000)
commita68e2b810c7cd3ce217f7d5f69fd9124eacfa921
tree0a169c35c9efeaf82f48eccae073205eeb8bed58
parent554b19b616a16ad049e73d036660a271be00c572
Android.mk: Provide a custom entry name to ensure meson checks succeed

When meson tests for the compability of some linker flags, not having
the default entry symbol "_start" defined makes the check fail for
a warning unrelated to the linker flag meson is testing.

Since these tests normally just try to compile a C program with a main,
use "main" as the ficticious entry point.

Specifically, this makes "-Wl,--build-id=sha1" recognised as valid
and allows its use for drivers that rely on it.

This is a temporary workaround that is required until Android.mk is
changed to support both shared libraries and executables.

Cc: "22.0" "22.1" "22.2" mesa-stable
Reviewed-by: Roman Stratiienko <r.stratiienko@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17715>
android/mesa3d_cross.mk