Remove garbage from Windows-SDL pc-file

This commit is contained in:
BtbN 2021-12-09 01:45:15 +01:00
parent 12d1805f31
commit 6d3ce02bf7

View file

@ -36,6 +36,12 @@ ffbuild_dockerbuild() {
sed -ri -e 's/ \-l\/.+?\.a//g' \
"$FFBUILD_PREFIX"/lib/pkgconfig/sdl2.pc
echo 'Requires: xxf86vm xscrnsaver xrandr xfixes xi xinerama xcursor' >> "$FFBUILD_PREFIX"/lib/pkgconfig/sdl2.pc
elif [[ $TARGET == win* ]]; then
sed -ri -e 's/\-Wl,\-\-no\-undefined.*//' \
-e 's/ \-mwindows//g' \
-e 's/ \-lSDL2main//g' \
-e 's/ \-Dmain=SDL_main//g' \
"$FFBUILD_PREFIX"/lib/pkgconfig/sdl2.pc
fi
}