Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2007 13:00:54 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        jhb@FreeBSD.org
Cc:        freebsd-hackers@FreeBSD.org, hackers@FreeBSD.org
Subject:   Re: Some diffs
Message-ID:  <20071220.130054.-660390386.imp@bsdimp.com>
In-Reply-To: <200712201346.55717.jhb@freebsd.org>
References:  <20071219.232511.-1548301831.imp@bsdimp.com> <200712201346.55717.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200712201346.55717.jhb@freebsd.org>
            John Baldwin <jhb@FreeBSD.org> 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



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