[oe-commits] [meta-openembedded] 68/97: openldap: fix native LDFLAGS build error

git at git.openembedded.org git at git.openembedded.org
Thu Sep 21 09:59:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

martin_jansa pushed a commit to branch pyro-next
in repository meta-openembedded.

commit 2130b25c677335f3cb160304133b7e4f14afa5ab
Author: Ioan-Adrian Ratiu <adrian.ratiu at ni.com>
AuthorDate: Thu Aug 24 15:40:10 2017 +0300

    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 at ni.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
    (cherry picked from commit 9d06ee2622bf2a7496b3e63a355f849e8496cacb)
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta-oe/recipes-support/openldap/openldap_2.4.44.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/openldap/openldap_2.4.44.bb b/meta-oe/recipes-support/openldap/openldap_2.4.44.bb
index 4b7ed35..f5c233f 100644
--- a/meta-oe/recipes-support/openldap/openldap_2.4.44.bb
+++ b/meta-oe/recipes-support/openldap/openldap_2.4.44.bb
@@ -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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list