Skip to content

Variable OBJECT_FMT is recursive on Freebsd #166

@MarcCoquand

Description

@MarcCoquand

Heya

When trying to build misc/fd, I run into the issue Variable OBJECT_FMT is recursive..

:~/pkgsrc/misc/fd $ bmake clean
Variable OBJECT_FMT is recursive.
	in /home/marc/pkgsrc/misc/fd/../../mk/platform/FreeBSD.mk:17
	in /home/marc/pkgsrc/mk/bsd.prefs.mk:550
	in /home/marc/pkgsrc/misc/fd/Makefile:19

It seems that OBJECT_FMT is not set correctly for Freebsd in mk/bsd.prefs.mk. I was able to workaround this issue for now by adding this to line 455

OBJECT_FMT= "ELF"
NATIVE_OBJECT_FMT:=	${OBJECT_FMT}
CROSSVARS+=		OBJECT_FMT
OBJECT_FMT=		\
	${"${USE_CROSS_COMPILE:U:tl}" == "yes":?${CROSS_OBJECT_FMT}:${NATIVE_OBJECT_FMT}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions