Print any Makefile variable with a print-% pattern rule
Add a print-% pattern rule to a GNU Makefile so make print-CFLAGS shows the final value of any variable, after all includes and overrides.
Short posts that solve one thing: the code, the output we got, and why it works.
Add a print-% pattern rule to a GNU Makefile so make print-CFLAGS shows the final value of any variable, after all includes and overrides.
Run ldd ./app to see which shared libraries a Linux ELF binary needs and where the loader resolves them, and never run it on a binary you do not trust.
ldd lists the shared libraries a program will load, but on glibc it can run the program, so use readelf -d for binaries you do not trust.
List the object files inside a .a archive with ar t, add v for sizes and dates, and see duplicate member names that ar extracts only one at a time.
Read the program header table with readelf -l from GNU binutils 2.43 to see what the loader maps, which sections share a segment, and the interpreter path.
Build the Cortex-M vector table as a const array of function pointers in C, placed in its own section, with the stack top in slot 0 and Reset in slot 1.
make clean deletes everything Buildroot built but leaves the dl/ directory and your .config, so a rebuild needs no downloads, on 2025.02.
Fail the build when a platform assumption is false using static_assert with a message in C11, for type sizes, CHAR_BIT and enum counts.
IMAGE_INSTALL:append in local.conf adds a package to every image you build, and it beats an image recipe's own assignment, on Scarthgap 5.0.
Pin every port to a known registry commit with builtin-baseline in vcpkg.json, so versions resolve the same way on every machine.
Build with GCC 14 and -fcf-protection=full to emit endbr64 landing pads and shadow-stack-compatible code for Intel CET on x86-64, and count the markers.
beginline and endline in LIC_FILES_CHKSUM checksum only part of a file, so a licence header in source code can be tracked, on Scarthgap 5.0.
We send one email when a new post is published. No spam.