From a34555c9a9f177e7846fbaed99fc646df26cfd63 Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 26 Dec 2017 11:03:48 -0800 Subject: [PATCH] qb: Include /usr/local/include for bsd based systems. This resolves an issue where the default freebsd compiler does not include /usr/local/include which contains important headers such as GL/gl.h and results in the check_header function failing to find them. Unfortunately pkg-config/pkgconf will not work here for two reasons. 1. It does not seem able to actually check for gl.h which RetroArch explicitly needs. 2. Not all systems have a pkg-config implementation so we will still have to fall back to checking for gl.h... Fixes https://github.com/libretro/RetroArch/issues/5958 --- qb/config.libs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/qb/config.libs.sh b/qb/config.libs.sh index f686d6ae37..4b693c6846 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -23,6 +23,7 @@ SOCKETLIB=-lc SOCKETHEADER= if [ "$OS" = 'BSD' ]; then + [ -d /usr/local/include ] && add_dirs INCLUDE /usr/local/include DYLIB=-lc; elif [ "$OS" = 'Haiku' ]; then DYLIB=""