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

git at git.openembedded.org git at git.openembedded.org
Sat Mar 5 08:26:59 UTC 2016


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

commit ad2330faa92a6eed8a65e9f64020c2cf50cd1ed3
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
    
    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