]> code.ossystems Code Review - openembedded-core.git/commit
ncurses: Prevent LDFLAGS being emitted in .pc files
authorNathan Rossi <nathan@nathanrossi.com>
Tue, 15 Dec 2020 08:32:00 +0000 (08:32 +0000)
committerSteve Sakoman <steve@sakoman.com>
Mon, 4 Jan 2021 14:50:23 +0000 (04:50 -1000)
commit7b84c9ea009b5452a21233483516de5e070fbe82
tree1aa73d32ff2f59438670bad069903554e349be92
parentd095c3f88e8a3c64e4db07c010d6cf2de373ce7f
ncurses: Prevent LDFLAGS being emitted in .pc files

By default ncurses includes the values of LDFLAGS in its output
pkgconfig .pc files. This causes issues because OE includes options that
are specific to either the build host, or build configuration. These
options are not expected to be embedded in the pkgconfig output that is
installed.

Specifically this change resolves issues with uninative, where uninative
includes '-Wl,--dynamic-linker=' in LDFLAGS in order to force the
building and execution of native binaries against the dynamic linker
provided by uninative. This path is specific to TMPDIR at the time of
build, such that the installed files (and the associated sstate) have
this path. This prevents the sstate from being portable across build
directories/hosts.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ef960d14bd9cecb9a3b50994636fbd455f06104a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/ncurses/files/0003-gen-pkgconfig.in-Do-not-include-LDFLAGS-in-generated.patch [new file with mode: 0644]
meta/recipes-core/ncurses/ncurses_6.2.bb