aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-12 09:52:12 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-12-16 22:15:41 +0100
commit1f16f16970391b8c9a9f2052c680791392e16948 (patch)
treece0aac0c5198c165718f7d7a0559defa1d3f463d
parente88a5fff4fa4a24726cfa0db64a5f285a721b1d4 (diff)
downloadbuildroot-1f16f16970391b8c9a9f2052c680791392e16948.tar.gz
buildroot-1f16f16970391b8c9a9f2052c680791392e16948.tar.bz2
package/sdl2_net: add missing host-pkgconf dependency
The sdl2_net configure script uses pkg-config to finx sdl2. If it doesn't find pkg-config, it tries to locate sdl2-config, and defaults to /usr/bin/sdl2-config, which causes the build to fail with: arm-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/SDL2' Fix this by adding host-pkgconf to the dependencies of sdl2_net. We could have added the right autoconf cache variable to tell the configure script where sdl2-config is located, but since pkg-config is tried first, let's use that. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit c2a1bcb1b3e56c16a8433a516646d4eb8581fd91) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/sdl2_net/sdl2_net.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/sdl2_net/sdl2_net.mk b/package/sdl2_net/sdl2_net.mk
index 2fa4a8c2e0..93bf3a2eb3 100644
--- a/package/sdl2_net/sdl2_net.mk
+++ b/package/sdl2_net/sdl2_net.mk
@@ -10,6 +10,6 @@ SDL2_NET_SITE = http://www.libsdl.org/projects/SDL_net/release
SDL2_NET_LICENSE = Zlib
SDL2_NET_LICENSE_FILES = COPYING.txt
SDL2_NET_INSTALL_STAGING = YES
-SDL2_NET_DEPENDENCIES = sdl2
+SDL2_NET_DEPENDENCIES = sdl2 host-pkgconf
$(eval $(autotools-package))