From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 20 20:02:00 2007 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 180C916A41A; Thu, 20 Dec 2007 20:02:00 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id C71B713C461; Thu, 20 Dec 2007 20:01:59 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.14.1) with ESMTP id lBKJvwBD022222; Thu, 20 Dec 2007 12:57:58 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 20 Dec 2007 13:00:54 -0700 (MST) Message-Id: <20071220.130054.-660390386.imp@bsdimp.com> To: jhb@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <200712201346.55717.jhb@freebsd.org> References: <20071219.232511.-1548301831.imp@bsdimp.com> <200712201346.55717.jhb@freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org, hackers@FreeBSD.org Subject: Re: Some diffs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 20:02:00 -0000 In message: <200712201346.55717.jhb@freebsd.org> John Baldwin writes: : Was the bsd.prog.mk change accidentally included? : : > ==== //depot/projects/arm/src/share/mk/bsd.prog.mk#4 - /Users/imp/p4/arm/src/share/mk/bsd.prog.mk ==== : > @@ -110,17 +110,18 @@ : > : > .if defined(PROG) : > _EXTRADEPEND: : > -.if defined(LDFLAGS) && !empty(LDFLAGS:M-nostdlib) : > +.if !defined(FOREIGN_BUILD) : > .if defined(DPADD) && !empty(DPADD) : > echo ${PROG}: ${DPADD} >> ${DEPENDFILE} : > .endif : > -.else : > +.if defined(LDFLAGS) && !empty(LDFLAGS:M-nostdlib) : > echo ${PROG}: ${LIBC} ${DPADD} >> ${DEPENDFILE} : > .if defined(PROG_CXX) : > echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE} : > .endif : > .endif : > .endif : > +.endif : > : > .if !target(install) FreeBSD's build systems assumes bad things. This is one nobody has noticed. Even when compiling purely dynamic, it tries to create a .depend file with libc.a... Or any .a for that matter. OS X doesn't have any .a's to speak of, so this was failing. It is part of another change that tries to hack together enough of an environment to make things build under OS X, but I hit the wall in binutils and need to rethink my approach. Warner