Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2005 19:01:11 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        jeremie@le-hen.org
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, netchild@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src Makefile.inc1 ObsoleteFiles.inc src/share/man/man7 build.7
Message-ID:  <20050731.190111.96940184.imp@bsdimp.com>
In-Reply-To: <20050801000209.GZ68965@obiwan.tataz.chchile.org>
References:  <20050731185925.GU68965@obiwan.tataz.chchile.org> <20050731.164241.119877948.imp@bsdimp.com> <20050801000209.GZ68965@obiwan.tataz.chchile.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20050801000209.GZ68965@obiwan.tataz.chchile.org>
            Jeremie Le Hen <jeremie@le-hen.org> writes:
: However, if someone can provide me a list of all possible file(1)
: output concerning the processor for which a binary has been compiled for,
: I would be glad to provide a patch.

TARGET_ARCH is what you want.  Why won't that work again?  Seems to me
that it is exactly what you want.  For non-cross builds, it is set
automatically for you.  For cross builds, you gotta set it anyway on
each of the other steps, so it hardly sounds burdonsom to set it for
the obsolete file check.

However, when cross building, it is rare that you install, on the
machine you are cross building from, to a DESTDIR that's likely to
have obsolete files in it.  DESTDIR is usually for installing images
that you are going to later do something with.  While one could export
/ and /usr via nfs, mount those and do the cross install that way, I'd
say that's relatively rare.

The file(1) thing is a kludge and should be avoided.  You can't
possibly tell TARGET=i386 from TARGET=pc98 since both are
TARGET_ARCH=i386 and all binaries, modulo kernel ones, from one run
unchanged on the other.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050731.190111.96940184.imp>