Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id 76608716CF for ; Sun, 7 Jul 2013 08:57:06 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 974EC14A2FF; Sun, 7 Jul 2013 08:57:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id EA91314A2FD for ; Sun, 7 Jul 2013 08:57:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id iv1X_JuFIrNG for ; Sun, 7 Jul 2013 08:57:03 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 6E92414A2FC for ; Sun, 7 Jul 2013 08:57:03 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 6C6F996; Sun, 7 Jul 2013 08:57:03 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 7 Jul 2013 08:57:03 +0000 From: "John Marino" Subject: CVS commit: pkgsrc/lang/gcc-aux To: pkgsrc-changes@NetBSD.org Reply-To: marino@netbsd.org X-Mailer: log_accum Message-Id: <20130707085703.6C6F996@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: marino Date: Sun Jul 7 08:57:03 UTC 2013 Modified Files: pkgsrc/lang/gcc-aux: Makefile Log Message: lang/gcc-aux: Fix build for PKGSRC_COMPILER=clang The Link-Time Optimizer requires a couple of functions from the math library. For gcc, it appears there are built-in versions that satisfy the requirement, but building with clang requires an explicit linkage to libm. This additional LDFLAG may be required on all platforms when clang is used for pkgsrc, but until this is confirmed let's limit it to NetBSD. Fix tested on NetBSD 6.1 amd64 with CLANGBASE=${LOCALBASE} To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 pkgsrc/lang/gcc-aux/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.