From owner-freebsd-ports@FreeBSD.ORG Wed Sep 1 04:58:59 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 EFC8A1065675; Wed, 1 Sep 2010 04:58:59 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5EC408FC12; Wed, 1 Sep 2010 04:58:59 +0000 (UTC) Received: by wwb34 with SMTP id 34so7976424wwb.31 for ; Tue, 31 Aug 2010 21:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=kX5fY+v7S/X4jyYqD3z0mcUqBzAlEXnvcBlulm3IPrg=; b=FM9gWabv1hUTCWHEBHCgQXjcyNXEL4Lhgz73QvLjpYqkae85G0NGicGoL5XWumtuZ1 S1bUUKmFcla20cFOWqGLM39+xJJR5v7KabJlD8vBwxh60jJY1DIdD7lYw5I5x46aXlVA BGOCm0IEOfP8ANilYLaLnVCAVotwQ1nC6aZB0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=gyvB9Jn/8MxjWjrc8b9jKCQQWMQWwtI87ymnq4TvVJum+CB/dWTVQXo6FpNvbXKR+E y4YjyuMQYNOdWWVcsDmmo9DvXG8LtQHK1tEshKCHb6zERpR4MJ9JVEkYd0KgbBUCQu+h MlKjz5SFQUIKM0IH6Kp/6LPlQzqT8+++R4tiM= MIME-Version: 1.0 Received: by 10.227.68.149 with SMTP id v21mr7566016wbi.138.1283317138487; Tue, 31 Aug 2010 21:58:58 -0700 (PDT) Received: by 10.216.63.146 with HTTP; Tue, 31 Aug 2010 21:58:58 -0700 (PDT) In-Reply-To: References: <4C7D76A6.7080401@DataIX.net> Date: Wed, 1 Sep 2010 04:58:58 +0000 Message-ID: From: "b. f." To: Scot Hetzel Content-Type: text/plain; charset=ISO-8859-1 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 Reply-To: bf1783@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 04:59:00 -0000 On 9/1/10, Scot Hetzel wrote: > On Tue, Aug 31, 2010 at 10:06 PM, b. f. wrote: >> On 8/31/10, jhell wrote: >So according to bsd.own.mk, this is the correct test for the math/blas >port to determine if profiling libraries should be built: > >.if !defined(WITHOUT_PROFILE) >PLIST_FILES+= lib/libblas_p.a >.endif No, you are leaving the order out of account. Apart from local and custom makefiles, the makefiles are included so: /usr/share/mk/sys.mk /etc/make.conf /usr/share/mk/bsd.compat.mk usr/share/mk/bsd.cpu.mk Makefile(for math/blas) /usr/share/mk/bsd.port.mk /usr/share/mk/bsd.own.mk /usr/ports/Mk/bsd.port.mk /usr/ports/Mk/bsd.commands.mk /usr/ports/Mk/bsd.perl.mk /usr/ports/Mk/bsd.gcc.mk /usr/ports/Mk/bsd.perl.mk /usr/ports/Mk/bsd.licenses.mk /usr/ports/Mk/bsd.sites.mk ... So if NO_PROFILE or NOPROFILE is defined, a test for WITHOUT_PROFILE in Makefile will still fail because NO_PROFILE is not mapped to WITHOUT_PROFILE until bsd.own.mk, after the test. Just be patient and we'll sort it out. > > As can be seen, NOPROFILE is deprecated. It may be deprecated, but it will still take effect without BURN_BRIDGES, and so still must be accounted for. > > NOTE: WITHOUT_PROFILE would need to be set in /etc/make.conf (instead > of /etc/src.conf) to disable building profiled libraries in the > FreeBSD sources and the math/blas port. No, it will still take effect, after the math/blas Makefile is parsed, unless _WITHOUT_SRCCONF is defined. See bsd.own.mk. b.