Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Sep 1998 12:16:54 -0700
From:      John Polstra <jdp@polstra.com>
To:        Mark Murray <mark@grondar.za>
Cc:        current@FreeBSD.ORG, jb@cimlogic.com.au
Subject:   Re: B CURRENT Build environment (Was: Re: Why no ldconfig for ELF?) 
Message-ID:  <199809021916.MAA24274@austin.polstra.com>
In-Reply-To: Your message of "Wed, 02 Sep 1998 21:01:17 %2B0200." <199809021901.VAA02093@gratis.grondar.za> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



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