X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=arch%2Fsandbox%2Fconfig.mk;h=e094ae2d053f331e40475d46852303c79fa3274a;hb=bbc09bf27e77dc80f74054f7fc8a66111dd113c6;hp=668aa71157e8f6bb98e131606938e69db65e55a5;hpb=32907339c2f533f1d59362c6100c6a0eeeca4837;p=oweals%2Fu-boot.git diff --git a/arch/sandbox/config.mk b/arch/sandbox/config.mk index 668aa71157..e094ae2d05 100644 --- a/arch/sandbox/config.mk +++ b/arch/sandbox/config.mk @@ -5,6 +5,11 @@ PLATFORM_CPPFLAGS += -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE PLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD PLATFORM_LIBS += -lrt +ifdef CONFIG_SANDBOX_SDL +PLATFORM_LIBS += $(shell sdl-config --libs) +PLATFORM_CPPFLAGS += $(shell sdl-config --cflags) +endif + # Support generic board on sandbox __HAVE_ARCH_GENERIC_BOARD := y