The standard way to do this is to inherit lib_package.

Alex

On Fri, 25 Mar 2022 at 11:19, Stefan Herbrechtsmeier
<[email protected]> wrote:
>
> From: Stefan Herbrechtsmeier <[email protected]>
>
> Add a libzstd package to remove libstdc++ runtime dependency from
> library users and reduce the size of the library package and its
> dependencies.
>
> Signed-off-by: Stefan Herbrechtsmeier <[email protected]>
>
> ---
>
>  meta/recipes-extended/zstd/zstd_1.5.2.bb | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/meta/recipes-extended/zstd/zstd_1.5.2.bb 
> b/meta/recipes-extended/zstd/zstd_1.5.2.bb
> index 0ddff469b8..3887f31ecf 100644
> --- a/meta/recipes-extended/zstd/zstd_1.5.2.bb
> +++ b/meta/recipes-extended/zstd/zstd_1.5.2.bb
> @@ -36,4 +36,8 @@ do_install () {
>      oe_runmake install 'DESTDIR=${D}' PREFIX=${prefix} -C contrib/pzstd
>  }
>
> +PACKAGE_BEFORE_PN = "libzstd"
> +
> +FILES:libzstd = "${libdir}/libzstd${SOLIBS}"
> +
>  BBCLASSEXTEND = "native nativesdk"
> --
> 2.30.2
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163633): 
https://lists.openembedded.org/g/openembedded-core/message/163633
Mute This Topic: https://lists.openembedded.org/mt/90019254/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to