DragonFly BSD
DragonFly users List (threaded) for 2009-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Makefile upgrade: target for x86_64

From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Sat, 7 Nov 2009 01:10:25 +0900

On Fri, Nov 06, 2009 at 08:06:56PM +0530, Saifi Khan wrote:
> Running the Makefile in debug mode, shows that the following
> variables are still set to amd64
> Please see the highlighted lines (line 751 and 752) at
> http://dragonflybsd.pastebin.com/m7e5b6eca
> How do i set these variables to x86_64 in the Makefile ?

By setting environment variables with the same name, or specify them
on the command line.  Otherwise they're taken from sysctl variables
(look at InitVariables() function in make's source code).  If you're
performing the `approved method of upgrading your system', you're
still running old kernel, which should return amd64.  So corecode added
a hack in Makefile.inc1 to replace these variables, but it's only used
when sub-make processes are run as ${MAKE} because of the this line in
the top-level Makefile:

MAKE=	PATH=${PATH} make -m ${.CURDIR}/share/mk -f Makefile.inc1

so this applies to buildworld or installworld, but doesn't apply to
`make upgrade' target, as it's written as:

upgrade: upgrade_etc
	@cd ${.CURDIR}/etc; make -m ${.CURDIR}/share/mk upgrade_etc

But the generic answer is of course, wait for the committer's comment :)


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