kodi: use get_target_linker helper to set linker options

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2022-09-25 20:04:46 +02:00
parent 4bcc171bd2
commit ff772b638c

View File

@ -20,13 +20,16 @@ configure_package() {
fi
# Set linker options
if [ "${GOLD_SUPPORT}" = "yes" ]; then
case $(get_target_linker) in
gold)
PKG_KODI_LINKER="-DENABLE_GOLD=ON \
-DENABLE_MOLD=OFF"
else
;;
*)
PKG_KODI_LINKER="-DENABLE_GOLD=OFF \
-DENABLE_MOLD=OFF"
fi
;;
esac
get_graphicdrivers