Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Nov 2017 02:37:49 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325570 - head/sys/conf
Message-ID:  <201711090237.vA92bn4K016034@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Thu Nov  9 02:37:49 2017
New Revision: 325570
URL: https://svnweb.freebsd.org/changeset/base/325570

Log:
  AUTO_OBJ: Fix 'old style' kernel builds using wrong .OBJDIR.
  
  There's no way currently to automatically prevent the bad .OBJDIR from being
  created but it can at least be prevented from being used.  Passing
  WITHOUT_AUTO_OBJ=yes or MK_AUTO_OBJ=no or -DNO_OBJ in will prevent it.
  
  Reported by:	jeffr
  Sponsored by:	Dell EMC Isilon
  Differential Revision:	https://reviews.freebsd.org/D12989

Modified:
  head/sys/conf/kern.pre.mk

Modified: head/sys/conf/kern.pre.mk
==============================================================================
--- head/sys/conf/kern.pre.mk	Thu Nov  9 01:41:00 2017	(r325569)
+++ head/sys/conf/kern.pre.mk	Thu Nov  9 02:37:49 2017	(r325570)
@@ -24,6 +24,9 @@ _srcconf_included_:
 .MAKE.MODE+=	curdirOk=yes
 .endif
 
+# The kernel build always expects .OBJDIR=.CURDIR.
+.OBJDIR: ${.CURDIR}
+
 .if defined(NO_OBJWALK) || ${MK_AUTO_OBJ} == "yes"
 NO_OBJWALK=		t
 NO_MODULES_OBJ=	t



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