mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
openldap: fix native LDFLAGS build error
LDFLAGS += "-pthread" adds the flag both for native and target builds,
however the openldap-native build overwrites the variable inside
native.bbclass causing "undefined reference to `pthread_getspecific'"
and other linker errors.
Change the append to happen after parsing by using the override
syntax and thus make sure it executes after native.bbclass (bitbake -e
reports pre-expansion value "${BUILD_LDFLAGS} -pthread").
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 9d06ee2622)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
44af8be65f
commit
2130b25c67
|
|
@ -150,7 +150,7 @@ PACKAGES += "${PN}-overlay-proxycache"
|
|||
# it was disabled for cross-compiling.
|
||||
CPPFLAGS_append = " -D_GNU_SOURCE -DURANDOM_DEVICE=\'/dev/urandom\' -fPIC"
|
||||
|
||||
LDFLAGS += "-pthread"
|
||||
LDFLAGS_append = " -pthread"
|
||||
|
||||
do_configure() {
|
||||
cp ${STAGING_DATADIR_NATIVE}/libtool/build-aux/ltmain.sh ${S}/build
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user