]> git.ipfire.org Git - thirdparty/coreutils.git/commit
build: support cross-compiling directly from git checkout
authorCollin Funk <collin.funk1@gmail.com>
Fri, 16 May 2025 05:02:26 +0000 (22:02 -0700)
committerPádraig Brady <P@draigBrady.com>
Sat, 17 May 2025 08:17:12 +0000 (09:17 +0100)
commit3844c15934ed232241558f4181163d11739edc4c
tree686d2c5274466d9ecc755f3c84ac0b6ceabc776b
parentc8cbb321d9b904231dddad618120300f274a3109
build: support cross-compiling directly from git checkout

* src/local.mk: Compile the make-prime-list in a temporary directory
using $(BUILD_CC) so it can be run even when $(CC) is a cross-compiler.
Add some comments.
(noinst_PROGRAMS): Remove src/make-prime-list.
(src_make_prime_list_LDADD): Remove variable.
* src/make-prime-list.c: Don't include config.h and attributes.h.
Remove unnecessary #undefs
(ATTRIBUTE_CONST, ATTRIBUTE_MALLOC): Define for the host compiler.
Fixes https://bugs.gnu.org/78377
.gitignore
cfg.mk
src/local.mk
src/make-prime-list.c