diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/uninative.bbclass | 11 | ||||
-rw-r--r-- | meta/conf/distro/defaultsetup.conf | 3 | ||||
-rw-r--r-- | meta/conf/distro/include/uninative-flags.inc | 9 |
3 files changed, 11 insertions, 12 deletions
diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass index 89cec07d78..9242320fee 100644 --- a/meta/classes/uninative.bbclass +++ b/meta/classes/uninative.bbclass | |||
@@ -7,17 +7,6 @@ UNINATIVE_TARBALL ?= "${BUILD_ARCH}-nativesdk-libc.tar.bz2" | |||
7 | #UNINATIVE_CHECKSUM[x86_64] = "dead" | 7 | #UNINATIVE_CHECKSUM[x86_64] = "dead" |
8 | UNINATIVE_DLDIR ?= "${DL_DIR}/uninative/" | 8 | UNINATIVE_DLDIR ?= "${DL_DIR}/uninative/" |
9 | 9 | ||
10 | # https://wiki.debian.org/GCC5 | ||
11 | # We may see binaries built with gcc5 run or linked into gcc4 environment | ||
12 | # so use the older libstdc++ standard for now until we don't support gcc4 | ||
13 | # on the host system. | ||
14 | BUILD_CXXFLAGS_append = " -D_GLIBCXX_USE_CXX11_ABI=0" | ||
15 | |||
16 | # | ||
17 | # icu configure defaults to CXX11 if no -std= option is passed in CXXFLAGS | ||
18 | # therefore pass one | ||
19 | BUILD_CXXFLAGS_append_pn-icu-native = " -std=c++98" | ||
20 | |||
21 | addhandler uninative_event_fetchloader | 10 | addhandler uninative_event_fetchloader |
22 | uninative_event_fetchloader[eventmask] = "bb.event.BuildStarted" | 11 | uninative_event_fetchloader[eventmask] = "bb.event.BuildStarted" |
23 | 12 | ||
diff --git a/meta/conf/distro/defaultsetup.conf b/meta/conf/distro/defaultsetup.conf index 71c65b1462..aa21345a1c 100644 --- a/meta/conf/distro/defaultsetup.conf +++ b/meta/conf/distro/defaultsetup.conf | |||
@@ -9,6 +9,8 @@ require conf/distro/include/tcmode-${TCMODE}.inc | |||
9 | TCLIBC ?= "glibc" | 9 | TCLIBC ?= "glibc" |
10 | require conf/distro/include/tclibc-${TCLIBC}.inc | 10 | require conf/distro/include/tclibc-${TCLIBC}.inc |
11 | 11 | ||
12 | require conf/distro/include/uninative-flags.inc | ||
13 | |||
12 | # Allow single libc distros to disable this code | 14 | # Allow single libc distros to disable this code |
13 | TCLIBCAPPEND ?= "-${TCLIBC}" | 15 | TCLIBCAPPEND ?= "-${TCLIBC}" |
14 | TMPDIR .= "${TCLIBCAPPEND}" | 16 | TMPDIR .= "${TCLIBCAPPEND}" |
@@ -20,4 +22,3 @@ PACKAGE_CLASSES ?= "package_ipk" | |||
20 | INHERIT_BLACKLIST = "blacklist" | 22 | INHERIT_BLACKLIST = "blacklist" |
21 | INHERIT_DISTRO ?= "debian devshell sstate license" | 23 | INHERIT_DISTRO ?= "debian devshell sstate license" |
22 | INHERIT += "${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST}" | 24 | INHERIT += "${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST}" |
23 | |||
diff --git a/meta/conf/distro/include/uninative-flags.inc b/meta/conf/distro/include/uninative-flags.inc new file mode 100644 index 0000000000..e9f82c39ea --- /dev/null +++ b/meta/conf/distro/include/uninative-flags.inc | |||
@@ -0,0 +1,9 @@ | |||
1 | # https://wiki.debian.org/GCC5 | ||
2 | # We may see binaries built with gcc5 run or linked into gcc4 environment | ||
3 | # so use the older libstdc++ standard for now until we don't support gcc4 | ||
4 | # on the host system. | ||
5 | BUILD_CXXFLAGS_append = " -D_GLIBCXX_USE_CXX11_ABI=0" | ||
6 | |||
7 | # icu configure defaults to CXX11 if no -std= option is passed in CXXFLAGS | ||
8 | # therefore pass one | ||
9 | BUILD_CXXFLAGS_append_pn-icu-native = " -std=c++98" | ||