NetBSD-Users archive

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

Re: Building NetBSD 11 Release from Source Fails on Linux/MacOS



On Mon, Nov 02, 2026 at 01:57:19PM +0000, Helge Pfeiffer wrote:
> b) Is the `config.m4` file that `nbm4` expects under `external/lgpl3/gmp/dist/mpn/` the one that is under
> `external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4`?
>    If yes, why is it there and how shall I get it to the right place without manually copying/linking it there?

Yes, and the magic is slightly hidden:

# XXX stuff looks for "../config.m4"
dummy:
        mkdir dummy
${.OBJDIR}/config.m4: ${.CURDIR}/arch/${GMP_MACHINE_ARCH}/config.m4
        rm -f ${.OBJDIR}/config.m4 && cp ${.CURDIR}/arch/${GMP_MACHINE_ARCH}/co$

CLEANFILES+=    config.m4

in external/lgpl3/gmp/lib/libgmp/Makefile.

So the arch/.../config.m4 file is copied to ${.OBJDIR}/config.m4 and should
be found from there.

Martin


Home | Main Index | Thread Index | Old Index