diff options
author | Peter Seiderer <ps.report@gmx.net> | 2016-10-17 22:44:48 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-10-18 12:01:05 +0200 |
commit | 8ae6e3bc9f54bfc94f003e3ad81a98c738b78572 (patch) | |
tree | f7baf6ed7a572c4559625c57b7ca824d599d5131 | |
parent | d49fed8fe21d0b9173157b7d096ace43a8964992 (diff) | |
download | buildroot-8ae6e3bc9f54bfc94f003e3ad81a98c738b78572.tar.gz buildroot-8ae6e3bc9f54bfc94f003e3ad81a98c738b78572.zip |
motion: fix sdl-config detection
Overwrite ac_cv_path_CONFIG_SDL in case sdl development is
installed on the host.
Fixes [1]:
ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/SDL'
[1] http://autobuild.buildroot.net/results/459/4592eb83efa393f77f5ee014f93a271f2313bee6
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/motion/motion.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/motion/motion.mk b/package/motion/motion.mk index de29a2a8e2..cf9be7602a 100644 --- a/package/motion/motion.mk +++ b/package/motion/motion.mk @@ -54,6 +54,9 @@ endif ifeq ($(BR2_PACKAGE_SDL),y) MOTION_DEPENDENCIES += sdl MOTION_CONF_OPTS += --with-sdl=$(STAGING_DIR)/usr +# overwrite ac_cv_path_CONFIG_SDL in case sdl development is +# installed on the host +MOTION_CONF_ENV += ac_cv_path_CONFIG_SDL=$(STAGING_DIR)/usr/bin/sdl-config else MOTION_CONF_OPTS += --without-sdl endif |