diff --git a/recipes-gamelib/allegro4/allegro4-4.4.2/0001-CMakeLists.txt-don-t-try-to-run-in-cross-environment.patch b/recipes-gamelib/allegro4/allegro4-4.4.2/0001-CMakeLists.txt-don-t-try-to-run-in-cross-environment.patch new file mode 100644 index 0000000..7de9002 --- /dev/null +++ b/recipes-gamelib/allegro4/allegro4-4.4.2/0001-CMakeLists.txt-don-t-try-to-run-in-cross-environment.patch @@ -0,0 +1,37 @@ +From ad105eee25e248e56c87d82fe8c70c44b4676bd9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Wed, 9 Jan 2013 01:31:38 +0100 +Subject: [PATCH] CMakeLists.txt: don't try to run in cross environment +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [Cross-compile specific] + +Signed-off-by: Andreas Müller +--- + CMakeLists.txt | 8 -------- + 1 files changed, 0 insertions(+), 8 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 245be10..8f4e331 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -189,14 +189,6 @@ if(UNIX) + set(MAP_FAILED "((void *) -1)") + endif() + +- check_c_source_runs(" +- static int notsupported = 1; +- void test_ctor (void) __attribute__((constructor)); +- void test_ctor (void) { notsupported = 0; } +- int main(void) { return (notsupported); } +- " +- ALLEGRO_USE_CONSTRUCTOR) +- + find_library(RT_LIBRARY rt) + check_c_source_compiles(" + #include +-- +1.7.4.4 + diff --git a/recipes-gamelib/allegro4/allegro4_4.4.2.bb b/recipes-gamelib/allegro4/allegro4_4.4.2.bb index d2a9f42..3abe39b 100644 --- a/recipes-gamelib/allegro4/allegro4_4.4.2.bb +++ b/recipes-gamelib/allegro4/allegro4_4.4.2.bb @@ -10,7 +10,8 @@ PR = "r0" DEPENDS = "virtual/libgl libglu libx11 libxcursor physfs openal jpeg" SRC_URI = "${SOURCEFORGE_MIRROR}/alleg/allegro/${PV}/allegro-${PV}.tar.gz \ -file://avoid_lib_paths.patch \ + file://avoid_lib_paths.patch \ + file://0001-CMakeLists.txt-don-t-try-to-run-in-cross-environment.patch \ " SRC_URI[md5sum] = "4db71b0460fc99926ae91d223199c2e6" @@ -20,3 +21,5 @@ inherit cmake binconfig S = "${WORKDIR}/allegro-${PV}" +FILES_${PN} += "${libdir}/allegro" +FILES_${PN}-dbg += "${libdir}/allegro/*/.debug"