diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-17 22:15:07 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-17 22:17:48 +0200 |
commit | b733572fa4c2651a77dd16dc21290c4e084d607c (patch) | |
tree | 7d4830dc99fa9c58c27079f58cb9653e2b45765a /arch/sandbox/Makefile | |
parent | 141d32f00f1c79684c73a2ba6e8f55ab7e85295f (diff) | |
download | barebox-b733572fa4c2651a77dd16dc21290c4e084d607c.tar.gz barebox-b733572fa4c2651a77dd16dc21290c4e084d607c.tar.xz |
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>
Diffstat (limited to 'arch/sandbox/Makefile')
-rw-r--r-- | arch/sandbox/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index c0aa8c6ed2..596c8f8309 100644 --- a/arch/sandbox/Makefile +++ b/arch/sandbox/Makefile @@ -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/ |