Link with -Wl,--pic-veneer in libretro PlayStation Vita builds

This commit is contained in:
刘皓 2025-03-30 14:06:40 -04:00
parent 70c5b3dad4
commit bfb14b43d6
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -1095,7 +1095,12 @@ jobs:
- name: Build frontend
run: |
cd ~
git clone https://github.com/libretro/RetroArch retroarch --depth 1 -b $(curl -s https://api.github.com/repos/libretro/RetroArch/releases/latest | jq -r '.tag_name')
tag_name=$(curl -s https://api.github.com/repos/libretro/RetroArch/releases/latest | jq -r '.tag_name')
git clone https://github.com/libretro/RetroArch retroarch --depth 1 -b $tag_name
if [ $tag_name = 'v1.20.0' ]
then
sed -i 's/-Wl,-q/-Wl,-q,--pic-veneer/g' retroarch/Makefile.vita
fi
mv mkxp-z_libretro.a retroarch/libretro_vita.a
cd retroarch
CLICOLOR_FORCE=1 make -f Makefile.vita LIBRETRO=mkxp-z