From owner-freebsd-current Wed Sep 2 12:18:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA16219 for freebsd-current-outgoing; Wed, 2 Sep 1998 12:18:28 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA16186 for ; Wed, 2 Sep 1998 12:18:17 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id MAA24274; Wed, 2 Sep 1998 12:16:54 -0700 (PDT) (envelope-from jdp) Message-Id: <199809021916.MAA24274@austin.polstra.com> To: Mark Murray cc: current@FreeBSD.ORG, jb@cimlogic.com.au Subject: Re: B CURRENT Build environment (Was: Re: Why no ldconfig for ELF?) In-reply-to: Your message of "Wed, 02 Sep 1998 21:01:17 +0200." <199809021901.VAA02093@gratis.grondar.za> Date: Wed, 02 Sep 1998 12:16:54 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In my makefile fragment (above, quoted), it fails, because a needed > lib (-lm) in /usr/lib/aout is not ELF, because the necessary > environment info is not being passed. I want to specify what lib > dirs to search in, but I do not know where that is available from > (Macro? Script? ENV?). WORLDTMP looks promising, but it is not > visible in the makefile I am using. OK, I think I understand the problem now. Perhaps the right solution is to change src/Makefile.inc1 to export WORLDTMP into the environment. There's already a place for that: COMPILER_ENV= BISON_SIMPLE=${TOOLROOT}/usr/share/misc/bison.simple \ COMPILER_PATH=${TOOLROOT}/usr/libexec:${TOOLROOT}/usr/bin \ GCC_EXEC_PREFIX=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib/ \ LD_LIBRARY_PATH=${TOOLROOT}${SHLIBDIR} \ LIBRARY_PATH=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib BMAKEENV= PATH=${TMPPATH} ${COMPILER_ENV} NOEXTRADEPEND=t \ OBJFORMAT_PATH=${TOOLROOT}/usr/libexec:/usr/libexec XMAKEENV= PATH=${STRICTTMPPATH} ${COMPILER_ENV} \ OBJFORMAT_PATH=${TOOLROOT}/usr/libexec \ CFLAGS="-nostdinc ${CFLAGS}" # XXX -nostdlib John Birrell, what do you think? -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message