diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-runtime.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-runtime.inc | 190 |
1 files changed, 97 insertions, 93 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc index 9dcce26536..c4e1c5b9a5 100644 --- a/meta/recipes-devtools/gcc/gcc-runtime.inc +++ b/meta/recipes-devtools/gcc/gcc-runtime.inc | |||
@@ -6,7 +6,7 @@ SUMMARY = "Runtime libraries from GCC" | |||
6 | # All gcc-runtime packages are now covered by the runtime exception. | 6 | # All gcc-runtime packages are now covered by the runtime exception. |
7 | LICENSE = "GPL-3.0-with-GCC-exception" | 7 | LICENSE = "GPL-3.0-with-GCC-exception" |
8 | 8 | ||
9 | CXXFLAGS_remove = "-fvisibility-inlines-hidden" | 9 | CXXFLAGS:remove = "-fvisibility-inlines-hidden" |
10 | 10 | ||
11 | EXTRA_OECONF_PATHS = "\ | 11 | EXTRA_OECONF_PATHS = "\ |
12 | --with-gxx-include-dir=${includedir}/c++/${BINV} \ | 12 | --with-gxx-include-dir=${includedir}/c++/${BINV} \ |
@@ -14,63 +14,60 @@ EXTRA_OECONF_PATHS = "\ | |||
14 | --with-build-sysroot=${STAGING_DIR_TARGET} \ | 14 | --with-build-sysroot=${STAGING_DIR_TARGET} \ |
15 | " | 15 | " |
16 | 16 | ||
17 | EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" | 17 | EXTRA_OECONF:append:linuxstdbase = " --enable-clocale=gnu" |
18 | EXTRA_OECONF_append = " --cache-file=${B}/config.cache" | 18 | EXTRA_OECONF:append = " --cache-file=${B}/config.cache" |
19 | EXTRA_OECONF_append_libc-newlib = " --with-newlib" | 19 | EXTRA_OECONF:append:libc-newlib = " --with-newlib --with-target-subdir" |
20 | EXTRA_OECONF:append:libc-picolibc = " --with-newlib --with-target-subdir" | ||
21 | EXTRA_OECONF:append:libc-baremetal = " --with-target-subdir" | ||
20 | 22 | ||
21 | # Disable ifuncs for libatomic on arm conflicts -march/-mcpu | 23 | # Disable ifuncs for libatomic on arm conflicts -march/-mcpu |
22 | EXTRA_OECONF_append_arm = " libat_cv_have_ifunc=no " | 24 | EXTRA_OECONF:append:arm = " libat_cv_have_ifunc=no " |
23 | EXTRA_OECONF_append_armeb = " libat_cv_have_ifunc=no " | 25 | EXTRA_OECONF:append:armeb = " libat_cv_have_ifunc=no " |
24 | 26 | ||
25 | DISABLE_STATIC_class-nativesdk ?= "" | 27 | DISABLE_STATIC:class-nativesdk ?= "" |
26 | 28 | ||
27 | # Newlib does not support symbol versioning on libsdtcc++ | 29 | # Newlib does not support symbol versioning on libsdtcc++ |
28 | SYMVERS_CONF_libc-newlib = "" | 30 | SYMVERS_CONF:libc-newlib = "" |
31 | SYMVERS_CONF:libc-picolibc = "" | ||
29 | 32 | ||
30 | # Building with thumb enabled on armv6t fails | 33 | # Building with thumb enabled on armv6t fails |
31 | ARM_INSTRUCTION_SET_armv6 = "arm" | 34 | ARM_INSTRUCTION_SET:armv6 = "arm" |
32 | 35 | ||
33 | RUNTIMELIBITM = "libitm" | 36 | RUNTIMELIBITM = "libitm" |
34 | RUNTIMELIBITM_arc = "" | 37 | RUNTIMELIBITM:arc = "" |
35 | RUNTIMELIBITM_mipsarch = "" | 38 | RUNTIMELIBITM:mipsarch = "" |
36 | RUNTIMELIBITM_nios2 = "" | 39 | RUNTIMELIBITM:nios2 = "" |
37 | RUNTIMELIBITM_microblaze = "" | 40 | RUNTIMELIBITM:microblaze = "" |
38 | RUNTIMELIBITM_riscv32 = "" | 41 | RUNTIMELIBITM:riscv32 = "" |
39 | RUNTIMELIBITM_riscv64 = "" | 42 | RUNTIMELIBITM:riscv64 = "" |
43 | RUNTIMELIBITM:loongarch64 = "" | ||
40 | RUNTIMELIBSSP ?= "" | 44 | RUNTIMELIBSSP ?= "" |
41 | RUNTIMELIBSSP_mingw32 ?= "libssp" | 45 | RUNTIMELIBSSP:mingw32 ?= "libssp" |
42 | 46 | ||
43 | RUNTIMETARGET = "${RUNTIMELIBSSP} libstdc++-v3 libgomp libatomic ${RUNTIMELIBITM} \ | 47 | RUNTIMETARGET = "${RUNTIMELIBSSP} libstdc++-v3 libgomp libatomic ${RUNTIMELIBITM} \ |
44 | ${@bb.utils.contains_any('FORTRAN', [',fortran',',f77'], 'libquadmath', '', d)} \ | 48 | ${@bb.utils.contains('FORTRAN', ',fortran', 'libquadmath', '', d)} \ |
45 | " | 49 | " |
46 | # Only build libstdc++ for newlib | 50 | # Only build libstdc++ for newlib |
47 | RUNTIMETARGET_libc-newlib = "libstdc++-v3" | 51 | RUNTIMETARGET:libc-newlib = "libstdc++-v3" |
52 | RUNTIMETARGET:libc-picolibc = "libstdc++-v3" | ||
48 | 53 | ||
49 | # libiberty | 54 | # libiberty |
50 | # libgfortran needs separate recipe due to libquadmath dependency | 55 | # libgfortran needs separate recipe due to libquadmath dependency |
51 | 56 | ||
52 | SLIB = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}" | ||
53 | SLIB_NEW = "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" | ||
54 | |||
55 | DEBUG_PREFIX_MAP_class-target = " \ | ||
56 | -fdebug-prefix-map=${WORKDIR}/recipe-sysroot= \ | ||
57 | -fdebug-prefix-map=${WORKDIR}/recipe-sysroot-native= \ | ||
58 | -fdebug-prefix-map=${SLIB}=${SLIB_NEW} \ | ||
59 | -fdebug-prefix-map=${SLIB}/include=${SLIB_NEW}/libstdc++-v3/../include \ | ||
60 | -fdebug-prefix-map=${SLIB}/libiberty=${SLIB_NEW}/libstdc++-v3/../libiberty \ | ||
61 | -fdebug-prefix-map=${B}=${SLIB_NEW} \ | ||
62 | " | ||
63 | |||
64 | do_configure () { | 57 | do_configure () { |
65 | export CXX="${CXX} -nostdinc++ -nostdlib++" | 58 | export CXX="${CXX} -nostdinc++ -L${WORKDIR}/dummylib" |
59 | # libstdc++ isn't built yet so CXX would error not able to find it which breaks stdc++'s configure | ||
60 | # tests. Create a dummy empty lib for the purposes of configure. | ||
61 | mkdir -p ${WORKDIR}/dummylib | ||
62 | ${CC} -x c /dev/null -c -o ${WORKDIR}/dummylib/dummylib.o | ||
63 | ${AR} rcs ${WORKDIR}/dummylib/libstdc++.a ${WORKDIR}/dummylib/dummylib.o | ||
66 | for d in libgcc ${RUNTIMETARGET}; do | 64 | for d in libgcc ${RUNTIMETARGET}; do |
67 | echo "Configuring $d" | 65 | echo "Configuring $d" |
68 | rm -rf ${B}/${TARGET_SYS}/$d/ | 66 | rm -rf ${B}/${TARGET_SYS}/$d/ |
69 | mkdir -p ${B}/${TARGET_SYS}/$d/ | 67 | mkdir -p ${B}/${TARGET_SYS}/$d/ |
70 | cd ${B}/${TARGET_SYS}/$d/ | 68 | cd ${B}/${TARGET_SYS}/$d/ |
71 | chmod a+x ${S}/$d/configure | 69 | chmod a+x ${S}/$d/configure |
72 | relpath=${@os.path.relpath("${S}/$d", "${B}/${TARGET_SYS}/$d")} | 70 | ${S}/$d/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} |
73 | $relpath/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} | ||
74 | if [ "$d" = "libgcc" ]; then | 71 | if [ "$d" = "libgcc" ]; then |
75 | (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h) | 72 | (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h) |
76 | fi | 73 | fi |
@@ -91,12 +88,14 @@ do_install () { | |||
91 | cd ${B}/${TARGET_SYS}/$d/ | 88 | cd ${B}/${TARGET_SYS}/$d/ |
92 | oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/${TARGET_SYS}/$d/ install | 89 | oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/${TARGET_SYS}/$d/ install |
93 | done | 90 | done |
91 | install -d ${D}${datadir}/gdb/auto-load/${libdir} | ||
92 | mv ${D}${libdir}/libstdc++*-gdb.py ${D}${datadir}/gdb/auto-load/${libdir} | ||
94 | if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include ]; then | 93 | if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include ]; then |
95 | install -d ${D}${libdir}/${TARGET_SYS}/${BINV}/include | 94 | install -d ${D}${libdir}/${TARGET_SYS}/${BINV}/include |
96 | mv ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include/* ${D}${libdir}/${TARGET_SYS}/${BINV}/include | 95 | mv ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include/* ${D}${libdir}/${TARGET_SYS}/${BINV}/include |
97 | rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include | 96 | rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include |
98 | fi | 97 | fi |
99 | rm -rf ${D}${infodir}/libgomp.info ${D}${infodir}/dir | 98 | rm -rf ${D}${infodir}/libgomp.info* ${D}${infodir}/dir |
100 | rm -rf ${D}${infodir}/libitm.info ${D}${infodir}/dir | 99 | rm -rf ${D}${infodir}/libitm.info ${D}${infodir}/dir |
101 | rm -rf ${D}${infodir}/libquadmath.info ${D}${infodir}/dir | 100 | rm -rf ${D}${infodir}/libquadmath.info ${D}${infodir}/dir |
102 | if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude ]; then | 101 | if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude ]; then |
@@ -105,9 +104,12 @@ do_install () { | |||
105 | if [ -d ${D}${infodir} ]; then | 104 | if [ -d ${D}${infodir} ]; then |
106 | rmdir --ignore-fail-on-non-empty -p ${D}${infodir} | 105 | rmdir --ignore-fail-on-non-empty -p ${D}${infodir} |
107 | fi | 106 | fi |
107 | if [ -d ${D}${libdir} ]; then | ||
108 | rmdir --ignore-fail-on-non-empty -p ${D}${libdir} | ||
109 | fi | ||
108 | } | 110 | } |
109 | 111 | ||
110 | do_install_append_class-target () { | 112 | do_install:append:class-target () { |
111 | if [ "${TARGET_OS}" = "linux-gnuspe" ]; then | 113 | if [ "${TARGET_OS}" = "linux-gnuspe" ]; then |
112 | ln -s ${TARGET_SYS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR}-linux | 114 | ln -s ${TARGET_SYS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR}-linux |
113 | fi | 115 | fi |
@@ -138,10 +140,15 @@ do_install_append_class-target () { | |||
138 | ln -s ../${TARGET_SYS}/ext ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR_MULTILIB_ORIGINAL}-${TARGET_OS}/ext | 140 | ln -s ../${TARGET_SYS}/ext ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR_MULTILIB_ORIGINAL}-${TARGET_OS}/ext |
139 | fi | 141 | fi |
140 | 142 | ||
141 | if [ "${TARGET_ARCH}" == "x86_64" -a "${MULTILIB_VARIANTS}" != "" ];then | 143 | if [ "${TARGET_ARCH}" = "x86_64" -a "${MULTILIB_VARIANTS}" != "" ];then |
142 | ln -sf ../${X86ARCH32}${TARGET_VENDOR}-${TARGET_OS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}/32 | 144 | ln -sf ../${X86ARCH32}${TARGET_VENDOR}-${TARGET_OS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}/32 |
143 | fi | 145 | fi |
144 | 146 | ||
147 | if [ "${TARGET_ARCH}" = "riscv32" -o "${TARGET_ARCH}" = "riscv64" ] && [ -z "${MULTILIB_VARIANTS}" ]; then | ||
148 | mv ${D}${includedir}/c++/${BINV}/${TARGET_SYS}/bits/* ${D}${includedir}/c++/${BINV}/bits | ||
149 | mv ${D}${includedir}/c++/${BINV}/${TARGET_SYS}/ext/* ${D}${includedir}/c++/${BINV}/ext | ||
150 | fi | ||
151 | |||
145 | if [ "${TCLIBC}" != "glibc" ]; then | 152 | if [ "${TCLIBC}" != "glibc" ]; then |
146 | case "${TARGET_OS}" in | 153 | case "${TARGET_OS}" in |
147 | "linux-musl" | "linux-*spe") extra_target_os="linux";; | 154 | "linux-musl" | "linux-*spe") extra_target_os="linux";; |
@@ -154,8 +161,9 @@ do_install_append_class-target () { | |||
154 | } | 161 | } |
155 | 162 | ||
156 | INHIBIT_DEFAULT_DEPS = "1" | 163 | INHIBIT_DEFAULT_DEPS = "1" |
157 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++ libgcc virtual/${MLPREFIX}libc" | 164 | DEPENDS = "virtual/cross-cc virtual/cross-c++ ${MLPREFIX}libgcc virtual/${MLPREFIX}libc" |
158 | PROVIDES = "virtual/${TARGET_PREFIX}compilerlibs" | 165 | DEPENDS:class-nativesdk = "virtual/nativesdk-cross-cc virtual/nativesdk-cross-c++ ${MLPREFIX}libgcc virtual/${MLPREFIX}libc" |
166 | PROVIDES = "virtual/${MLPREFIX}compilerlibs" | ||
159 | 167 | ||
160 | BBCLASSEXTEND = "nativesdk" | 168 | BBCLASSEXTEND = "nativesdk" |
161 | 169 | ||
@@ -165,8 +173,6 @@ PACKAGES = "\ | |||
165 | libstdc++-precompile-dev \ | 173 | libstdc++-precompile-dev \ |
166 | libstdc++-dev \ | 174 | libstdc++-dev \ |
167 | libstdc++-staticdev \ | 175 | libstdc++-staticdev \ |
168 | libg2c \ | ||
169 | libg2c-dev \ | ||
170 | libssp \ | 176 | libssp \ |
171 | libssp-dev \ | 177 | libssp-dev \ |
172 | libssp-staticdev \ | 178 | libssp-staticdev \ |
@@ -184,67 +190,64 @@ PACKAGES = "\ | |||
184 | libitm-staticdev \ | 190 | libitm-staticdev \ |
185 | " | 191 | " |
186 | # The base package doesn't exist, so we clear the recommends. | 192 | # The base package doesn't exist, so we clear the recommends. |
187 | RRECOMMENDS_${PN}-dbg = "" | 193 | RRECOMMENDS:${PN}-dbg = "" |
188 | 194 | ||
189 | # include python debugging scripts | 195 | # include python debugging scripts |
190 | FILES_${PN}-dbg += "\ | 196 | FILES:${PN}-dbg += "\ |
191 | ${libdir}/libstdc++.*-gdb.py \ | ||
192 | ${datadir}/gcc-${BINV}/python/libstdcxx \ | 197 | ${datadir}/gcc-${BINV}/python/libstdcxx \ |
198 | ${datadir}/gdb/auto-load \ | ||
193 | " | 199 | " |
194 | 200 | # Needed by libstdcxx pretty printer, however it is disabled intentionally | |
195 | FILES_libg2c = "${target_libdir}/libg2c.so.*" | 201 | # as it adds build time dependency on bash and some cases e.g. no GPL3 cases |
196 | SUMMARY_libg2c = "Companion runtime library for g77" | 202 | # bash is not availbale and builds fails |
197 | FILES_libg2c-dev = "\ | 203 | # So it needs to be added manually to images sadly. |
198 | ${libdir}/libg2c.so \ | 204 | # RDEPENDS:${PN}-dbg += "python3-datetime" |
199 | ${libdir}/libg2c.a \ | 205 | |
200 | ${libdir}/libfrtbegin.a \ | 206 | FILES:libstdc++ = "${libdir}/libstdc++.so.*" |
201 | " | 207 | SUMMARY:libstdc++ = "GNU standard C++ library" |
202 | SUMMARY_libg2c-dev = "Companion runtime library for g77 - development files" | 208 | FILES:libstdc++-dev = "\ |
203 | |||
204 | FILES_libstdc++ = "${libdir}/libstdc++.so.*" | ||
205 | SUMMARY_libstdc++ = "GNU standard C++ library" | ||
206 | FILES_libstdc++-dev = "\ | ||
207 | ${includedir}/c++/ \ | 209 | ${includedir}/c++/ \ |
208 | ${libdir}/libstdc++.so \ | 210 | ${libdir}/libstdc++.so \ |
209 | ${libdir}/libstdc++*.la \ | 211 | ${libdir}/libstdc++*.la \ |
210 | ${libdir}/libsupc++.la \ | 212 | ${libdir}/libsupc++.la \ |
213 | ${libdir}/libstdc++.modules.json \ | ||
211 | " | 214 | " |
212 | SUMMARY_libstdc++-dev = "GNU standard C++ library - development files" | 215 | SUMMARY:libstdc++-dev = "GNU standard C++ library - development files" |
213 | FILES_libstdc++-staticdev = "\ | 216 | FILES:libstdc++-staticdev = "\ |
214 | ${libdir}/libstdc++*.a \ | 217 | ${libdir}/libstdc++*.a \ |
215 | ${libdir}/libsupc++.a \ | 218 | ${libdir}/libsupc++.a \ |
216 | " | 219 | " |
217 | SUMMARY_libstdc++-staticdev = "GNU standard C++ library - static development files" | 220 | SUMMARY:libstdc++-staticdev = "GNU standard C++ library - static development files" |
218 | 221 | ||
219 | FILES_libstdc++-precompile-dev = "${includedir}/c++/${TARGET_SYS}/bits/*.gch" | 222 | FILES:libstdc++-precompile-dev = "${includedir}/c++/${TARGET_SYS}/bits/*.gch" |
220 | SUMMARY_libstdc++-precompile-dev = "GNU standard C++ library - precompiled header files" | 223 | SUMMARY:libstdc++-precompile-dev = "GNU standard C++ library - precompiled header files" |
221 | 224 | ||
222 | FILES_libssp = "${libdir}/libssp.so.*" | 225 | FILES:libssp = "${libdir}/libssp.so.*" |
223 | SUMMARY_libssp = "GNU stack smashing protection library" | 226 | SUMMARY:libssp = "GNU stack smashing protection library" |
224 | FILES_libssp-dev = "\ | 227 | FILES:libssp-dev = "\ |
225 | ${libdir}/libssp*.so \ | 228 | ${libdir}/libssp*.so \ |
226 | ${libdir}/libssp*_nonshared.a \ | 229 | ${libdir}/libssp*_nonshared.a \ |
227 | ${libdir}/libssp*.la \ | 230 | ${libdir}/libssp*.la \ |
228 | ${libdir}/${TARGET_SYS}/${BINV}/include/ssp \ | 231 | ${libdir}/${TARGET_SYS}/${BINV}/include/ssp \ |
229 | " | 232 | " |
230 | SUMMARY_libssp-dev = "GNU stack smashing protection library - development files" | 233 | SUMMARY:libssp-dev = "GNU stack smashing protection library - development files" |
231 | FILES_libssp-staticdev = "${libdir}/libssp*.a" | 234 | FILES:libssp-staticdev = "${libdir}/libssp*.a" |
232 | SUMMARY_libssp-staticdev = "GNU stack smashing protection library - static development files" | 235 | SUMMARY:libssp-staticdev = "GNU stack smashing protection library - static development files" |
233 | 236 | ||
234 | FILES_libquadmath = "${libdir}/libquadmath*.so.*" | 237 | FILES:libquadmath = "${libdir}/libquadmath*.so.*" |
235 | SUMMARY_libquadmath = "GNU quad-precision math library" | 238 | SUMMARY:libquadmath = "GNU quad-precision math library" |
236 | FILES_libquadmath-dev = "\ | 239 | FILES:libquadmath-dev = "\ |
237 | ${libdir}/${TARGET_SYS}/${BINV}/include/quadmath* \ | 240 | ${libdir}/${TARGET_SYS}/${BINV}/include/quadmath* \ |
238 | ${libdir}/libquadmath*.so \ | 241 | ${libdir}/libquadmath*.so \ |
239 | ${libdir}/libquadmath.la \ | 242 | ${libdir}/libquadmath.la \ |
240 | " | 243 | " |
241 | SUMMARY_libquadmath-dev = "GNU quad-precision math library - development files" | 244 | SUMMARY:libquadmath-dev = "GNU quad-precision math library - development files" |
242 | FILES_libquadmath-staticdev = "${libdir}/libquadmath.a" | 245 | FILES:libquadmath-staticdev = "${libdir}/libquadmath.a" |
243 | SUMMARY_libquadmath-staticdev = "GNU quad-precision math library - static development files" | 246 | SUMMARY:libquadmath-staticdev = "GNU quad-precision math library - static development files" |
244 | 247 | ||
245 | FILES_libgomp = "${libdir}/libgomp*${SOLIBS}" | 248 | FILES:libgomp = "${libdir}/libgomp*${SOLIBS}" |
246 | SUMMARY_libgomp = "GNU OpenMP parallel programming library" | 249 | SUMMARY:libgomp = "GNU OpenMP parallel programming library" |
247 | FILES_libgomp-dev = "\ | 250 | FILES:libgomp-dev = "\ |
248 | ${libdir}/libgomp*${SOLIBSDEV} \ | 251 | ${libdir}/libgomp*${SOLIBSDEV} \ |
249 | ${libdir}/libgomp*.la \ | 252 | ${libdir}/libgomp*.la \ |
250 | ${libdir}/libgomp.spec \ | 253 | ${libdir}/libgomp.spec \ |
@@ -252,34 +255,34 @@ FILES_libgomp-dev = "\ | |||
252 | ${libdir}/${TARGET_SYS}/${BINV}/include/omp.h \ | 255 | ${libdir}/${TARGET_SYS}/${BINV}/include/omp.h \ |
253 | ${libdir}/${TARGET_SYS}/${BINV}/include/openacc.h \ | 256 | ${libdir}/${TARGET_SYS}/${BINV}/include/openacc.h \ |
254 | " | 257 | " |
255 | SUMMARY_libgomp-dev = "GNU OpenMP parallel programming library - development files" | 258 | SUMMARY:libgomp-dev = "GNU OpenMP parallel programming library - development files" |
256 | FILES_libgomp-staticdev = "${libdir}/libgomp*.a" | 259 | FILES:libgomp-staticdev = "${libdir}/libgomp*.a" |
257 | SUMMARY_libgomp-staticdev = "GNU OpenMP parallel programming library - static development files" | 260 | SUMMARY:libgomp-staticdev = "GNU OpenMP parallel programming library - static development files" |
258 | 261 | ||
259 | FILES_libatomic = "${libdir}/libatomic.so.*" | 262 | FILES:libatomic = "${libdir}/libatomic.so.*" |
260 | SUMMARY_libatomic = "GNU C++11 atomics support library" | 263 | SUMMARY:libatomic = "GNU C++11 atomics support library" |
261 | FILES_libatomic-dev = "\ | 264 | FILES:libatomic-dev = "\ |
262 | ${libdir}/libatomic.so \ | 265 | ${libdir}/libatomic.so \ |
263 | ${libdir}/libatomic.la \ | 266 | ${libdir}/libatomic.la \ |
264 | " | 267 | " |
265 | SUMMARY_libatomic-dev = "GNU C++11 atomics support library - development files" | 268 | SUMMARY:libatomic-dev = "GNU C++11 atomics support library - development files" |
266 | FILES_libatomic-staticdev = "${libdir}/libatomic.a" | 269 | FILES:libatomic-staticdev = "${libdir}/libatomic.a" |
267 | SUMMARY_libatomic-staticdev = "GNU C++11 atomics support library - static development files" | 270 | SUMMARY:libatomic-staticdev = "GNU C++11 atomics support library - static development files" |
268 | 271 | ||
269 | FILES_libitm = "${libdir}/libitm.so.*" | 272 | FILES:libitm = "${libdir}/libitm.so.*" |
270 | SUMMARY_libitm = "GNU transactional memory support library" | 273 | SUMMARY:libitm = "GNU transactional memory support library" |
271 | FILES_libitm-dev = "\ | 274 | FILES:libitm-dev = "\ |
272 | ${libdir}/libitm.so \ | 275 | ${libdir}/libitm.so \ |
273 | ${libdir}/libitm.la \ | 276 | ${libdir}/libitm.la \ |
274 | ${libdir}/libitm.spec \ | 277 | ${libdir}/libitm.spec \ |
275 | " | 278 | " |
276 | SUMMARY_libitm-dev = "GNU transactional memory support library - development files" | 279 | SUMMARY:libitm-dev = "GNU transactional memory support library - development files" |
277 | FILES_libitm-staticdev = "${libdir}/libitm.a" | 280 | FILES:libitm-staticdev = "${libdir}/libitm.a" |
278 | SUMMARY_libitm-staticdev = "GNU transactional memory support library - static development files" | 281 | SUMMARY:libitm-staticdev = "GNU transactional memory support library - static development files" |
279 | 282 | ||
280 | require gcc-testsuite.inc | 283 | require gcc-testsuite.inc |
281 | 284 | ||
282 | EXTRA_OEMAKE_prepend_task-check = "${PARALLEL_MAKE} " | 285 | EXTRA_OEMAKE:prepend:task-check = "${PARALLEL_MAKE} " |
283 | 286 | ||
284 | MAKE_CHECK_TARGETS ??= "check-gcc ${@" ".join("check-target-" + i for i in d.getVar("RUNTIMETARGET").split())}" | 287 | MAKE_CHECK_TARGETS ??= "check-gcc ${@" ".join("check-target-" + i for i in d.getVar("RUNTIMETARGET").split())}" |
285 | # prettyprinters and xmethods require gdb tooling | 288 | # prettyprinters and xmethods require gdb tooling |
@@ -296,11 +299,12 @@ do_check[prefuncs] += "extend_recipe_sysroot" | |||
296 | do_check[prefuncs] += "check_prepare" | 299 | do_check[prefuncs] += "check_prepare" |
297 | do_check[dirs] = "${WORKDIR}/dejagnu ${B}" | 300 | do_check[dirs] = "${WORKDIR}/dejagnu ${B}" |
298 | do_check[nostamp] = "1" | 301 | do_check[nostamp] = "1" |
302 | do_check[network] = "1" | ||
299 | do_check() { | 303 | do_check() { |
300 | export DEJAGNU="${WORKDIR}/dejagnu/site.exp" | 304 | export DEJAGNU="${WORKDIR}/dejagnu/site.exp" |
301 | 305 | ||
302 | # HACK: this works around the configure setting CXX with -nostd* args | 306 | # HACK: this works around the configure setting CXX with -nostd* args |
303 | sed -i 's/-nostdinc++ -nostdlib++//g' $(find ${B} -name testsuite_flags | head -1) | 307 | sed -i 's#-nostdinc++ -L${WORKDIR}/dummylib##g' $(find ${B} -name testsuite_flags | head -1) |
304 | 308 | ||
305 | if [ "${TOOLCHAIN_TEST_TARGET}" = "user" ]; then | 309 | if [ "${TOOLCHAIN_TEST_TARGET}" = "user" ]; then |
306 | # qemu user has issues allocating large amounts of memory | 310 | # qemu user has issues allocating large amounts of memory |