From owner-cvs-all Mon Apr 22 3:12:35 2002 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 5B30437B420; Mon, 22 Apr 2002 03:12:29 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id UAA03616; Mon, 22 Apr 2002 20:07:49 +1000 Date: Mon, 22 Apr 2002 20:08:37 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Ruslan Ermilov Cc: Peter Wemm , "David O'Brien" , "M. Warner Losh" , , Subject: Re: PROG_CXX (was: Re: cvs commit: src/gnu/usr.bin/gperf Makefile src/gnu/usr.bin/groff/src/devices/grodvi Makefile src/gnu/usr.bin/groff/src/devices/grohtml Makefile src/gnu/usr.bin/groff/src/devices/gro In-Reply-To: <20020412082651.GB75003@sunbay.com> Message-ID: <20020422195118.T8253-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 12 Apr 2002, Ruslan Ermilov wrote: > I also thought about this last night. Linking with c++ is _required_ for > static linkage of C++ programs to work; libstdc++.a depends on libm.a, and > c++ is "smart" enough to call linker with -lstdc++ -lm (it should probably > be doing this in the -static case only anyway). Should be fixed in 1.108. > > This brings another question [for BDE]. Should be convert all usages of > -lfoo to ${MINUSLFOO}, similar to the way we do it for ${MINUSLPAM}, to > avoid doing this extra work in each individual makefile when it fails to > compile statically. I wouldn't like to see the ugly MINUSLPAM hack duplicated, and hope it will not be needed. For libm, I think the correct fix is to merge it into libc and change libm to an optional stub. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message