9
0
Fork 0

sandbox: only test for sdl libs when sdl is enabled

Otherwise we get the following warning when sdl is not installed
on the compile host:

Package sdl was not found in the pkg-config search path.
Perhaps you should add the directory containing `sdl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl' found

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2012-10-17 22:15:07 +02:00
parent 141d32f00f
commit b733572fa4
1 changed files with 5 additions and 2 deletions

View File

@ -39,10 +39,13 @@ archprepare: maketools
PHONY += maketools
SDL_LIBS-$(CONFIG_DRIVER_VIDEO_SDL) := $(shell pkg-config sdl --libs)
ifeq ($(CONFIG_DRIVER_VIDEO_SDL),y)
SDL_LIBS := $(shell pkg-config sdl --libs)
endif
cmd_barebox__ = $(CC) -o $@ -Wl,-T,$(barebox-lds) \
-Wl,--start-group $(barebox-common) -Wl,--end-group \
-lrt -lpthread $(SDL_LIBS-y)
-lrt -lpthread $(SDL_LIBS)
common-y += $(BOARD) arch/sandbox/os/