Making bootable SDL2 app with Buildroot

Using Buildroot I aim to make an SDL2 application bootable on Raspberry Pi, as if for a pre-hard-drive machine.
So far I can build a system with SDL2 and an application, and boot into the system, but not run the application.

I selected all the application dependencies, importantly rpi-userland and SDL2, making new packages where necessary. My config options:

Code:
BR2_arm=y
BR2_arm1176jzf_s=y
BR2_ARM_EABIHF=y
BR2_TOOLCHAIN_BUILDROOT_VENDOR="raspberry"
BR2_KERNEL_HEADERS_VERSION=y
BR2_DEFAULT_KERNEL_VERSION="3.12.18"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_12=y
BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_TARGET_GENERIC_GETTY_PORT=“tty1"
BR2_ROOTFS_OVERLAY=”./overlay"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/raspberrypi/linux.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="b09a27249d61475e4423607f7632a5aa6e7b3a53"
BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi_quick"
BR2_LINUX_KERNEL_ZIMAGE=y
BR2_PACKAGE_SDL2=y

BR2_PACKAGE_SDL2_FBCON is not set

BR2_PACKAGE_SDL2_IMAGE=y
BR2_PACKAGE_SDL2_IMAGE_PNG=y
BR2_PACKAGE_SDL2_IMAGE_TARGA=y
BR2_PACKAGE_SDL2_MIXER=y
BR2_PACKAGE_RPI_FIRMWARE=y
BR2_PACKAGE_RPI_USERLAND=y
BR2_PACKAGE_ALSA_LIB=y
BR2_PACKAGE_GAME_MUSIC_EMU=y
BR2_PACKAGE_PHYSFS=y

The SDL2 package can be found attached to this post (http://www.raspberrypi.org/forums/viewtopic.php?p=574706#p574706). It is based on the SDL1 package with nothing taken out (yet), plus a --host parameter containing “raspberry-linux” and a patch on configure.in to correct hardcoded “/opt/vc” paths into pkg-config calls.
I added the application to the rootfs by installing into an overlay.
Then I built and copied to SD card with no apparent issue.

When I booted into it and ran my application, a number of GLESv2 functions couldn’t be resolved.
[Image: http://s29.postimg.org/5lqkaeprn/IMG_20140706_184629726.jpg ] (http://postimg.org/image/5lqkaeprn/)

Investigating SDL2 source code, I found that in dynamically loading libGLES2.so and libEGL.so, it searches hardcoded “/opt/vc/lib” paths for them, whereas rpi-userland package picked /usr as install root. So I tried symlinking /opt/vc/lib to /usr/lib but that didn’t fix it.
My next guess is to not strip the symbols from those libraries. But until I get the chance to try that, I welcome any insight that may be had. Thanks.