[oe-commits] [openembedded-core] 49/54: uninative: Use CXX11 ABI for interoperation between gcc4 and gcc5

git at git.openembedded.org git at git.openembedded.org
Mon Mar 7 11:57:16 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 98f9fa18f2af85ccabef97184d4a084ac8057a16
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Sat Mar 5 08:22:33 2016 +0000

    uninative: Use CXX11 ABI for interoperation between gcc4 and gcc5
    
    We may see binaries built with gcc5 run or linked into gcc4 environment
    so use the older libstdc++ standard for now until we don't support gcc4
    on the host system. https://wiki.debian.org/GCC5 has more details about this.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/uninative.bbclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 6abcbed..260a926 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -7,6 +7,12 @@ UNINATIVE_TARBALL ?= "${BUILD_ARCH}-nativesdk-libc.tar.bz2"
 #UNINATIVE_CHECKSUM[x86_64] = "dead"
 UNINATIVE_DLDIR ?= "${DL_DIR}"
 
+# https://wiki.debian.org/GCC5
+# We may see binaries built with gcc5 run or linked into gcc4 environment
+# so use the older libstdc++ standard for now until we don't support gcc4
+# on the host system.
+BUILD_CXXFLAGS_append = " -D_GLIBCXX_USE_CXX11_ABI=0"
+
 addhandler uninative_event_fetchloader
 uninative_event_fetchloader[eventmask] = "bb.event.BuildStarted"
 

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


More information about the Openembedded-commits mailing list