diff options
author | Max Krummenacher <max.oss.09@gmail.com> | 2014-10-31 13:05:09 +0100 |
---|---|---|
committer | Max Krummenacher <max.oss.09@gmail.com> | 2014-10-31 13:05:09 +0100 |
commit | 3df13bcabbd69699b020b178bc353ac4d9249673 (patch) | |
tree | 2284f7b594aee5acbbd0835e4656e65401a45318 /recipes-support | |
parent | 9b938f8c302c9f5c467a7b282a6fd63468b88386 (diff) |
libcryptopp: package/stage to correct paths
The native build needs PREFIX to stage the files correctly into x86 sysroot
The target build did not deploy the shared object due to missing soname
version symlinks
Diffstat (limited to 'recipes-support')
-rw-r--r-- | recipes-support/libcryptopp/libcryptopp_5.6.2.bb | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/recipes-support/libcryptopp/libcryptopp_5.6.2.bb b/recipes-support/libcryptopp/libcryptopp_5.6.2.bb index 25b1b69..606ce8e 100644 --- a/recipes-support/libcryptopp/libcryptopp_5.6.2.bb +++ b/recipes-support/libcryptopp/libcryptopp_5.6.2.bb @@ -25,9 +25,21 @@ inherit autotools pkgconfig EXTRA_OECONF = "--libdir=${base_libdir}" do_compile() { - sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile - export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC" - oe_runmake -f GNUmakefile - oe_runmake libcryptopp.so + sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile + export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC" + oe_runmake -f GNUmakefile + oe_runmake libcryptopp.so } +do_install_prepend() { + export PREFIX=${prefix} +} + +do_install_append() { + if [ -f "${D}/usr/lib/libcryptopp.so" ] && [ ! -e "${D}/usr/lib/libcryptopp.so.${PV}" ] + then + mv ${D}/usr/lib/libcryptopp.so ${D}/usr/lib/libcryptopp.so.${PV} + ln -fs libcryptopp.so.${PV} ${D}/usr/lib/libcryptopp.so.5 + ln -fs libcryptopp.so.${PV} ${D}/usr/lib/libcryptopp.so + fi +} |