Khem Raj e73caaf78f crash-cross-canadian: fix build, including on clang based SDKs
The cross-canadian variant did not build. Several issues:

1. DEPENDS used :append on top of crash.inc's target DEPENDS. cross-canadian
   does not remap DEPENDS to nativesdk, so the target zlib/readline/ncurses/
   gmp/mpfr stayed in the dependency set and staged a real target usr/lib into
   the recipe sysroot, clashing with the nativesdk toolchain (clang-glue
   provides usr/lib as a symlink) during do_prepare_recipe_sysroot. Override
   DEPENDS with the nativesdk set instead (matching gdb-cross-canadian) and add
   the -native build tools the build needs.

2. do_compile hardcoded ${HOST_PREFIX}gcc, which does not exist on clang based
   SDKs (TOOLCHAIN = "clang"), giving "C compiler cannot create executables".
   Use the toolchain-aware ${CC}/${CXX} like the other variants.

3. crash's gdb merge re-enters the top-level crash Makefile from gdb's link
   rule ("make -C ../.. ... library") without passing the compiler, so crash's
   own objects fell back to the Makefile default $(CROSS_COMPILE)gcc and failed
   to find a compiler on clang SDKs. Forward CC/CXX through that recursion in
   the bundled gdb-16.2.patch; this is harmless where ${cross}-gcc exists.

Verified by building crash, crash-native, crash-cross and
crash-cross-canadian-x86-64 for a clang based SDK (qemux86-64).

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-06-27 15:50:59 -07:00
2026-06-23 00:45:59 -07:00
2026-05-12 01:06:58 -07:00
2025-04-10 08:31:06 -07:00
2019-06-15 16:45:33 -07:00
2026-03-02 19:25:48 -08:00

Collection of layers for the OE-core universe

Main layer maintainer: Khem Raj raj.khem@gmail.com

This repository is a collection of layers to supplement OE-Core with additional packages, Each layer have designated maintainer Please see the respective READMEs in the layer subdirectories

S
Description
No description provided
Readme 117 MiB
Languages
BitBake 86.2%
Shell 5.9%
C 2.8%
Roff 1.9%
NASL 1.7%
Other 1.3%