From owner-freebsd-ports@FreeBSD.ORG Wed Sep 1 07:12:04 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8A8910656AE; Wed, 1 Sep 2010 07:12:04 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 305788FC12; Wed, 1 Sep 2010 07:12:04 +0000 (UTC) Received: by fxm4 with SMTP id 4so5276698fxm.13 for ; Wed, 01 Sep 2010 00:12:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ICKrDtIQvtaIQoMdsFYVurIf4SE1dt6rgw7+sDVRZX4=; b=ZQBp3RRC+N58ZfvkX7SskLAJYly2gMsS1/EBBQF4+joVef62VlnuFkP/yTAHWsJjlQ B7sUFPqMnfVWI5jnUaVNLQpd2Ge8SlBImIFl98E322aH/NDpzIyg/GxSLppQpCXoPdbH 33yq8Eb7UqRFlPc6us0sgbNeHYpe8dvXXRts0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=d9QymqjuD+34Cwaif3gFOF1exoHX0X+PiH3rKCVezflaMQiT1Vj5oEx0OrRVYhp9/R jo2KX2DMdSgbpUWwamefbhuX3JsSI3+jNN5Vu2shzqFCgmDrh7KoO1gBm1oa2ytQp/kf HnKLlb57CRIa0ylMMPPGWRex7ZyV185OM204A= MIME-Version: 1.0 Received: by 10.239.160.132 with SMTP id c4mr365429hbd.171.1283325123222; Wed, 01 Sep 2010 00:12:03 -0700 (PDT) Received: by 10.239.155.129 with HTTP; Wed, 1 Sep 2010 00:12:03 -0700 (PDT) In-Reply-To: References: <4C7D76A6.7080401@DataIX.net> Date: Wed, 1 Sep 2010 02:12:03 -0500 Message-ID: From: Scot Hetzel To: bf1783@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: maho@freebsd.org, freebsd-ports@freebsd.org Subject: Re: math/blas linking to gfortran with LDADD?= -lgfortran X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 07:12:04 -0000 On Wed, Sep 1, 2010 at 1:31 AM, Scot Hetzel wrote: >> No, it will still take effect, after the math/blas Makefile is parsed, >> unless _WITHOUT_SRCCONF is defined. =A0See bsd.own.mk. >> >> b. >> > > I created PR 150174, before I got your reply: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D150174 > > I changed the port to use the OPTIONS framework to enable/disable > profiled libraries. =A0The only thing I didn't take into account was the > bsd.lib.mk was still pulling in /etc/src.conf. =A0To fix this we just > need to add _WITHOUT_SRCCONF to the MAKE_ARGS (should they be > MAKE_ENV?). > I retested using MAKE_ENV and it works. Unfortunately, adding _WITHOUT_SRCCONF causes: =3D=3D=3D> Building for blas-1.0_5 "/usr/share/mk/bsd.lib.mk", line 31: Malformed conditional (${MK_ASSERT_DEBUG} =3D=3D "no") "/usr/share/mk/bsd.lib.mk", line 34: if-less endif "/usr/share/mk/bsd.libnames.mk", line 20: Malformed conditional (${MK_BIND_LIBS} !=3D "no") : due to _WITHOUT_SRCCONF is preventing bsd.own.mk from defining these variab= les. I found a way to solve this, by defining SRCCONF=3D"", which prevents /etc/src.conf from being pulled in automatically. Scot