Date: Fri, 12 Apr 2002 10:16:56 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: "David O'Brien" <obrien@FreeBSD.org> Cc: Marcel Moolenaar <marcel@xcllnt.net>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/gnu/usr.bin Makefile Message-ID: <20020412071656.GA75003@sunbay.com> In-Reply-To: <20020411114422.C99937@dragon.nuxi.com> References: <200204082038.g38KcuJ36871@freefall.freebsd.org> <20020409082654.GE73475@sunbay.com> <20020410045830.GB10113@dhcp01.pn.xcllnt.net> <20020410174228.GJ98684@sunbay.com> <20020410180308.C84993@dragon.nuxi.com> <20020411071218.GB27950@sunbay.com> <20020411114422.C99937@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Apr 11, 2002 at 11:44:22AM -0700, David O'Brien wrote:
> On Thu, Apr 11, 2002 at 10:12:18AM +0300, Ruslan Ermilov wrote:
> > If you want to change the semantics of NO_CXX from recently "don't comp=
ile
> > c++ compiler" to "don't compile c++ compiler and c++ programs", you will
> > also have to disable building of lib/libc_r, as it also uses c++, in its
> > uthread/uthread_autoinit.cc.
>=20
> For -current we don't use libc_r. ;-)
> =20
Are you running your own version of -current? Mine, for example,
builds it (here's the relevant part of the output from tonight's
-current build for i386):
=3D=3D=3D> libc_r
cc -O -pipe -march=3Dpentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/CURRENT/usr/src=
/lib/libc_r/../libc/include -DPTHREAD_KERNEL -D_THREAD_SAFE -I/CURRENT/usr/=
src/lib/libc_r/uthread -I/CURRENT/usr/src/lib/libc_r/../../include -D_LOCK_=
DEBUG -D_PTHREADS_INVARIANTS -c /CURRENT/usr/src/lib/libc_r/uthread/uthrea=
d_accept.c -o uthread_accept.o
[...]
c++ -O -pipe -march=3Dpentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/CURRENT/usr/s=
rc/lib/libc_r/../libc/include -DPTHREAD_KERNEL -D_THREAD_SAFE -I/CURRENT/us=
r/src/lib/libc_r/uthread -I/CURRENT/usr/src/lib/libc_r/../../include -D_LOC=
K_DEBUG -D_PTHREADS_INVARIANTS -c /CURRENT/usr/src/lib/libc_r/uthread/uthr=
ead_autoinit.cc -o uthread_autoinit.o
[...]
We have this in lib/libc_r/Makefile:
=2Eif !defined(NOLIBC_R) && ${MACHINE_ARCH} !=3D ia64
_libc_r=3D libc_r
=2Eendif
> > What if the user has a compiler installed from the Ports collection and
> > wants to compile c++ programs using it?
>=20
> make CXX=3Dmy_bad_ass_C++ world
>=20
> will do what you want. The system C++ compiler would still be built; but
> it would not be used for building anything else. (if this is not the
> case; it is a bug in our build system)
>=20
Agreed, but we still need to fix the libc_r issue.
Cheers,
--=20
Ruslan Ermilov Sysadmin and DBA,
ru@sunbay.com Sunbay Software AG,
ru@FreeBSD.org FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
--W/nzBZO5zC0uMSeA
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE8tonoUkv4P6juNwoRAgFlAJ0ShC2bhY93BNY52p9iJP89IVLO8gCfVBDC
nThIFfcrsBBfsZWasZE3GmQ=
=DPOZ
-----END PGP SIGNATURE-----
--W/nzBZO5zC0uMSeA--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020412071656.GA75003>
