allegro4: Don't give away host include paths from allegro-config

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
This commit is contained in:
Marko Lindqvist
2019-07-10 18:34:18 +03:00
parent 4171dde853
commit fa414a08b2
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
allegro-config does not give any include path parameters for --cflags to
avoid problems with target paths getting used in build system.
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
diff -Nurd allegro-4.4.3.1/misc/allegro-config.in allegro-4.4.3.1/misc/allegro-config.in
--- allegro-4.4.3.1/misc/allegro-config.in 2019-03-04 03:30:11.000000000 +0200
+++ allegro-4.4.3.1/misc/allegro-config.in 2019-07-10 18:26:36.680737493 +0300
@@ -173,7 +173,7 @@
if test "$echo_cflags" = "yes"; then
if test -n "$include_prefix" -a -z "$addon_form"; then
- echo -I${include_path} $allegro_cflags
+ echo $allegro_cflags
else
echo $allegro_cflags
fi
@@ -181,7 +181,7 @@
if test "$echo_cppflags" = "yes"; then
if test -n "$include_prefix" -a -z "$addon_form"; then
- echo -I${include_path} $allegro_cppflags
+ echo $allegro_cppflags
else
echo $allegro_cppflags
fi

View File

@@ -10,6 +10,7 @@ DEPENDS = "virtual/libgl libglu libx11 libxcursor physfs openal-soft jpeg"
# This uses uploaded asset from github.com, not one automatically regenerated
# from time to time
SRC_URI = "https://github.com/liballeg/allegro5/releases/download/${PV}/allegro-${PV}.tar.gz \
file://avoid_include_paths.patch \
file://avoid_lib_paths.patch \
file://0001-CMakeLists.txt-don-t-try-to-run-in-cross-environment.patch \
"