]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Dec 2020 22:52:13 +0000 (22:52 +0000)
commitef960d14bd9cecb9a3b50994636fbd455f06104a
tree412a287f4e3f6d07eac2855c704b77af46df8d9e
parent7c8245f41d43b5a267d51f3c7784536eee23fca2
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>
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