From 01e738a8f1414acd0102e432bbc15b4e603fd956 Mon Sep 17 00:00:00 2001 From: Vincent Davis Jr Date: Thu, 8 Dec 2022 10:34:20 -0600 Subject: [PATCH] configure: setup for OE-core usage Upstream-Status: Inappropriate RPI-Distro repo clones original ffmpeg and applies patches to enable raspiberry pi support. Add global CFLAGS and LDFLAGS. So, that when ./configure runs test it's able to locate proper headers and libs in a cross-compile environment. Add new check to opengl. None of the above headers exists and we also should be using GLESv2. Update where compiler finds OMX_Core.h Only check that sdl2 version greater than 2.0.1 Signed-off-by: Vincent Davis Jr --- configure | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 723b81f1..0c7f2654 100755 --- a/configure +++ b/configure @@ -5746,6 +5746,9 @@ enable_weak_pic() { } enabled pic && enable_weak_pic +# Set CFLAGS and LDFLAGS globally +add_cflags -I${sysroot}/usr/include/ -I${sysroot}/usr/include/IL -I${sysroot}/usr/include/drm +add_ldflags -L${sysroot}/usr/lib/ test_cc <= 2.0.1 sdl2 < 2.1.0" SDL_events.h SDL_PollEvent + test_pkg_config sdl2 "sdl2 >= 2.0.1" SDL_events.h SDL_PollEvent if disabled sdl2 && "${SDL2_CONFIG}" --version > /dev/null 2>&1; then sdl2_cflags=$("${SDL2_CONFIG}" --cflags) sdl2_extralibs=$("${SDL2_CONFIG}" --libs) -- 2.38.1