[oe] [PATCH] cmake.bbclass: force CMAKE_INSTALL_SO_NO_EXE to be 0

Roman I Khimov khimov at altell.ru
Tue Mar 16 19:50:38 UTC 2010


By default cmake guesses whether install shared libaries with exec
permissions or not based on host distribution, so this behaviour
changes from host to host. OpenEmbedded assumes shared libraries to
be with exec permissions (reverse way brakes stripping, for example),
so let's force this in cmake configure invocation.

Signed-off-by: Roman I Khimov <khimov at altell.ru>
---
 classes/cmake.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/classes/cmake.bbclass b/classes/cmake.bbclass
index f21c4d6..706bdda 100644
--- a/classes/cmake.bbclass
+++ b/classes/cmake.bbclass
@@ -21,6 +21,7 @@ cmake_do_configure() {
   cmake ${OECMAKE_SOURCEPATH} \
     -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
     -DCMAKE_FIND_ROOT_PATH:PATH=${STAGING_DIR_HOST} \
+    -DCMAKE_INSTALL_SO_NO_EXE=0 \
     ${EXTRA_OECMAKE} \
     -Wno-dev
 }
-- 
1.6.4.2





More information about the Openembedded-devel mailing list