From owner-freebsd-arch Mon Jul 22 11:11:15 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B4B237B400 for ; Mon, 22 Jul 2002 11:11:12 -0700 (PDT) Received: from corbulon.video-collage.com (corbulon.video-collage.com [64.35.99.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D3FC43E3B for ; Mon, 22 Jul 2002 11:11:11 -0700 (PDT) (envelope-from mi+mx@aldan.algebra.com) Received: from misha.murex.com (250-217.customer.cloud9.net [168.100.250.217]) by corbulon.video-collage.com (8.12.2/8.12.2) with ESMTP id g6MIB7HV090842 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL) for ; Mon, 22 Jul 2002 14:11:09 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) X-Authentication-Warning: corbulon.video-collage.com: Host 250-217.customer.cloud9.net [168.100.250.217] claimed to be misha.murex.com Content-Type: text/plain; charset="us-ascii" From: Mikhail Teterin Organization: Virtual Estates, Inc. To: arch@FreeBSD.org Subject: LDADD+=-lstdc++ vs. LD=${CXX} Date: Mon, 22 Jul 2002 14:11:22 -0400 User-Agent: KMail/1.4.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200207221411.22528.mi+mx@aldan.algebra.com> X-Scanned-By: MIMEDefang 2.15 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello! Which of the two constructs in the subject is better -- more portable, more reliable, more correct (for some definitions of the adjectives listed)? AFAIK, when linking an executable, it is LD=${CXX} (hence the recent PROG_CXX introduction). But what about linking together a shared C++ library which is supposed to be used in C executables (the relationship between graphics/libfpx and graphics/ImageMagick)? Is it time for LIB_CXX define? Thanks! -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message