[oe-commits] [openembedded-core] 03/19: cmake.bbclass: Define LIB_SUFFIX

git at git.openembedded.org git at git.openembedded.org
Mon Dec 30 10:56:55 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit b36636c9d41e9466bd901bc495ddd6158add843a
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Sun Dec 29 10:44:01 2019 -0800

    cmake.bbclass: Define LIB_SUFFIX
    
    This variable is used in lot of cmake based packages to denote libdir in
    multilib environments, now a days there is a better way to include
    GNUInstallDirs module but thats upto these packages to adopt. Defining
    this helps compiling a bunch of recipes in extended layers when using
    multilibbed builds.
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/cmake.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 11ffb0d..a046daa 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -174,6 +174,7 @@ cmake_do_configure() {
 	  -DCMAKE_INSTALL_LIBDIR:PATH=${@os.path.relpath(d.getVar('libdir'), d.getVar('prefix') + '/')} \
 	  -DCMAKE_INSTALL_INCLUDEDIR:PATH=${@os.path.relpath(d.getVar('includedir'), d.getVar('prefix') + '/')} \
 	  -DCMAKE_INSTALL_DATAROOTDIR:PATH=${@os.path.relpath(d.getVar('datadir'), d.getVar('prefix') + '/')} \
+	  -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
 	  -DCMAKE_INSTALL_SO_NO_EXE=0 \
 	  -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
 	  -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list