return switch cflags to sdl2-config

This commit is contained in:
Dave Murphy 2019-01-22 23:44:59 +00:00
parent 12f161236f
commit 32f4915699
1 changed files with 4 additions and 2 deletions

View File

@ -4232,8 +4232,10 @@ AS_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
;;
aarch64-none-elf*)
ARCH=switch
SDL_CFLAGS="$SDL_CFLAGS -isystem ${DEVKITPRO}/libnx/include -I${DEVKITPRO}/portlibs/switch/include"
EXTRA_CFLAGS="$EXTRA_CFLAGS -D__SWITCH__ -march=armv8-a -mtune=cortex-a57 -mtp=soft -ftls-model=local-exec -fPIC"
SDL_CFLAGS="$SDL_CFLAGS -D__SWITCH__ -march=armv8-a -mtune=cortex-a57 \
-mtp=soft -ftls-model=local-exec \
-isystem ${DEVKITPRO}/libnx/include -I${DEVKITPRO}/portlibs/switch/include"
EXTRA_CFLAGS="$EXTRA_CFLAGS -fPIC"
EXTRA_CFLAGS="$EXTRA_CFLAGS $SDL_CFLAGS -g -O3"
EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_VIDEO_STATIC_ANGLE"
EXTRA_LDFLAGS="-march=armv8-a -fPIE -L${DEVKITPRO}/libnx/lib -lEGL -lglapi -ldrm_nouveau -lnx"