From 1755b5190721e6fe87a40971bc869f7a68ac7169 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 31 Aug 2020 14:13:15 -0700 Subject: anbox: Add recipe anbox lets run android in a box on linux Signed-off-by: Khem Raj --- ...mugen-Sett-cmake-C-C-flags-to-host-cflags.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-oe/recipes-extended/anbox/anbox/0003-emugen-Sett-cmake-C-C-flags-to-host-cflags.patch (limited to 'meta-oe/recipes-extended/anbox/anbox/0003-emugen-Sett-cmake-C-C-flags-to-host-cflags.patch') diff --git a/meta-oe/recipes-extended/anbox/anbox/0003-emugen-Sett-cmake-C-C-flags-to-host-cflags.patch b/meta-oe/recipes-extended/anbox/anbox/0003-emugen-Sett-cmake-C-C-flags-to-host-cflags.patch new file mode 100644 index 0000000000..c9c6e5ef7e --- /dev/null +++ b/meta-oe/recipes-extended/anbox/anbox/0003-emugen-Sett-cmake-C-C-flags-to-host-cflags.patch @@ -0,0 +1,26 @@ +From af0369f74181aa150cf304486f97d3b842aadf50 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 31 Aug 2020 14:05:39 -0700 +Subject: [PATCH] emugen: Sett cmake C/C++ flags to host cflags + +This ensures that it does not use cross flags when building it for build +host + +Signed-off-by: Khem Raj +--- + external/android-emugl/host/tools/emugen/CMakeLists.txt | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/external/android-emugl/host/tools/emugen/CMakeLists.txt b/external/android-emugl/host/tools/emugen/CMakeLists.txt +index 8285126..83b8242 100644 +--- a/external/android-emugl/host/tools/emugen/CMakeLists.txt ++++ b/external/android-emugl/host/tools/emugen/CMakeLists.txt +@@ -1,5 +1,8 @@ + if (NOT "${HOST_CMAKE_CXX_COMPILER}" STREQUAL "") + set (CMAKE_CXX_COMPILER "${HOST_CMAKE_CXX_COMPILER}") ++ set(CMAKE_C_FLAGS "${HOST_CMAKE_C_FLAGS} -Wall") ++ set(CMAKE_CXX_FLAGS "${HOST_CMAKE_CXX_FLAGS} -std=c++11 -Wall") ++ set(CMAKE_CXX_LINK_FLAGS "${HOST_CMAKE_CXX_LINK_FLAGS}") + endif() + + set(SOURCES -- cgit 1.2.3-korg