From owner-freebsd-ports@freebsd.org Wed Mar 8 19:49:16 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0BE8D02650 for ; Wed, 8 Mar 2017 19:49:16 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B66B8179A for ; Wed, 8 Mar 2017 19:49:16 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B0C59D0264E; Wed, 8 Mar 2017 19:49:16 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE51FD02648; Wed, 8 Mar 2017 19:49:16 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay119.isp.belgacom.be (mailrelay119.isp.belgacom.be [195.238.20.146]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BD5841798; Wed, 8 Mar 2017 19:49:15 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CMDACAX8BY/0nD8VFeHAEBBAEBCgEBg?= =?us-ascii?q?1FBEIEajl+QWikBlxuGIgKCP0MVAQIBAQEBAQEBayiFFQEBAQECATocIwULCw4?= =?us-ascii?q?KCSUPKh4GE4l3DLJ5inwBAQEBAQUBAQEBJIs9ijkFnDaSK3aQN5M+NSKBAzcsC?= =?us-ascii?q?IcUPzWKEwEBAQ?= X-IPAS-Result: =?us-ascii?q?A2CMDACAX8BY/0nD8VFeHAEBBAEBCgEBg1FBEIEajl+QWik?= =?us-ascii?q?BlxuGIgKCP0MVAQIBAQEBAQEBayiFFQEBAQECATocIwULCw4KCSUPKh4GE4l3D?= =?us-ascii?q?LJ5inwBAQEBAQUBAQEBJIs9ijkFnDaSK3aQN5M+NSKBAzcsCIcUPzWKEwEBAQ?= Received: from 73.195-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.195.73]) by relay.skynet.be with ESMTP; 08 Mar 2017 20:49:13 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id v28JnCP5052336; Wed, 8 Mar 2017 20:49:12 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Wed, 8 Mar 2017 20:49:12 +0100 From: Tijl Coosemans To: Warner Losh Cc: ports@freebsd.org, Dag-Erling =?UTF-8?B?U23DuHJncmF2?= , Baptiste Daroussin , "freebsd-arch@freebsd.org" Subject: Re: manpath change for ports ? Message-ID: <20170308204912.5cfd861d@kalimero.tijl.coosemans.org> In-Reply-To: References: <20170306235610.cmpxk27jhoafel6l@ivaldir.net> <86mvcvojzt.fsf@desk.des.no> <20170308182124.79c4bc13@kalimero.tijl.coosemans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2017 19:49:16 -0000 On Wed, 8 Mar 2017 10:31:32 -0700 Warner Losh wrote: > On Wed, Mar 8, 2017 at 10:21 AM, Tijl Coosemans wrote: >> Are you talking about gcc implicitly searching /usr/local/include and >> /usr/local/lib? > > That's currently inconsistent between base gcc, clang, binutils and > ports versions. I forget which ones do and which ones don't search > automatically. It's only ports binutils and ports gcc that search /usr/local. > IMHO, they all should. I used to think this too, but now I think it should be possible to use any compiler to compile something from base or something that should only depend on things from base, for testing purposes or perhaps because it needs to be deployed on some other machine. Compilers shouldn't search /usr/local implicitly then. It's easy enough to add -I and -L flags (perhaps using pkg-config) but it's not easy to remove built-in -I and -L flags.