bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] crc: New optimised slice-by-8 implementation


From: Bruno Haible
Subject: Re: [PATCH] crc: New optimised slice-by-8 implementation
Date: Thu, 31 Oct 2024 14:57:54 +0100

Simon Josefsson wrote:
> > the MAINTAINERCLEANFILES variable isn't set when building gzip so there's
> > an error when using += with it.
> 
> I think you should add 'MAINTAINERCLEANFILES =' to gzip instead.

Yes, this is a documented Gnulib requirement:
https://www.gnu.org/software/gnulib/manual/html_node/Modified-build-rules.html

> > There's another issue with the way fopen/fprintf work and I can't
> > figure out how to fix it:
> 
> Sounds like you need to link crc-generate-table with the gnulib
> replacement library.

This would be a chicken-and-egg problem: you need libgnu.a to build
crc-generate-table, and you need to run crc-generate-table in order to
get the set of sources for libgnu.a.

The best way to think about such situations is to consider cross-compiling:
Which source code is meant to run on the build system and which is meant
to run on the target system? All of libgnu.a is meant to run on the target
system; therefore crc-generate-table must NOT link to libgnu.a.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]