From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 15 07:58:15 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B6F28C9 for ; Sat, 15 Dec 2012 07:58:15 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail-ea0-f182.google.com (mail-ea0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id BEB9B8FC14 for ; Sat, 15 Dec 2012 07:58:14 +0000 (UTC) Received: by mail-ea0-f182.google.com with SMTP id a14so1615395eaa.13 for ; Fri, 14 Dec 2012 23:58:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=from:reply-to:to:cc:subject:x-mailer:references:in-reply-to :content-type:content-id:date:message-id:mime-version :content-transfer-encoding; bh=MGXXSwaWBqlQg4obHfgP7bwwSRWldPOkJSYOvK8HAKY=; b=iXB589UQsMJrF0Qg5JRhVYQk/qLYeG6UkGIgPLtS8QkrGwr7CWE6n4e6HStdMmMupU fjADMcd44svk8IPFGn4GlrywpZinjM3sKSnUEpdaKRTkF4GEMes0mR4eULfkLXf6/KJQ ENlw/qX9EzZZSXvPJ+54wt0puas9X4h2LLkUg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:reply-to:to:cc:subject:x-mailer:references:in-reply-to :content-type:content-id:date:message-id:mime-version :content-transfer-encoding:x-gm-message-state; bh=MGXXSwaWBqlQg4obHfgP7bwwSRWldPOkJSYOvK8HAKY=; b=Cjq6xc8ZshIsJOxsPLgFGIDSizKvOT24iP2M/D3qB8dwiFBtLkxXvU7ZIFVQxJ+GTg Qw/X0cm4ZmgTeFaAn5E5ryTyuXmphbMY8+NWFsuwBQ/9vNHgpktYUobisbHbpGe/Pvga o4DXkzt85bPtNlWBphzIX/RmVGs5Cvz9HXUAVlNDvsYB/En7+cNhs6rOeUB/AK+Cuhb9 kjGHcgQ7scoPwRl451OAvPOQtIDhDB4YXild/hCytNyyZBtyyV3jNDNMf7ABTX7H2+uQ bpLJveUi01njdm1IS/jq9dyjFcXkAswmZFkEqtRBhvpJxGupmfZqEOih6uBpUhQZji2w E/8A== Received: by 10.14.184.131 with SMTP id s3mr21939227eem.38.1355558288474; Fri, 14 Dec 2012 23:58:08 -0800 (PST) Received: from [10.40.86.74] (089144192193.atnat0001.highway.a1.net. [89.144.192.193]) by mx.google.com with ESMTPS id 43sm14243896eed.10.2012.12.14.23.58.06 (version=SSLv3 cipher=OTHER); Fri, 14 Dec 2012 23:58:07 -0800 (PST) From: Bernhard =?ISO-8859-1?Q?Fr=F6hlich?= To: Konstantin Belousov , Baptiste Daroussin Subject: Re: Fix overlinking in base aka import pkgconf X-Mailer: Modest 3.90.7 References: <20121214235418.GF18884@ithaqua.etoilebsd.net> <20121215012233.GP71906@kib.kiev.ua> In-Reply-To: <20121215012233.GP71906@kib.kiev.ua> Content-Type: text/plain; charset=utf-8 Content-ID: <1355558294.7933.1.camel@Nokia-N900-42-11> Date: Sat, 15 Dec 2012 08:58:14 +0100 Message-Id: <1355558294.7933.2.camel@Nokia-N900-42-11> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkBBnh7ryP07O8uET7+su/ZB/wvF5CBfXbwH9soXIjiBFtWIyvqB8JppX6Gy7YFIFjumQQM X-Mailman-Approved-At: Sat, 15 Dec 2012 12:28:34 +0000 Cc: hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Bernhard =?ISO-8859-1?Q?Fr=F6hlich?= List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2012 07:58:15 -0000 On Sa., 15. Dez. 2012 02:22:34 CET, Konstantin Belousov wrote: > On Sat, Dec 15, 2012 at 12:54:19AM +0100, Baptiste Daroussin wrote: > > Hi, > > > > Some of our binary are overlinked, the way we handle the linking > > doesn't help for that. > What do you mean there ? Do you mean that some libraries specified for > the linking stage of the final binary are not needed for the execution ? > > > > > On proposition could be to use pkgconf > > https://github.com/pkgconf/pkgconf which is BSD license pkg-config > > implementation 100% compatible with pkg-config. > > > > What I propose is to create a new PCADD variable for the Makefiles. > > > > PCADD will invoke pkgconf to gather the libraries and the cflags for a > > given project. > > > > The second thing would be to create .pc files for all of our libraries. > > > > for example: > > usr.bin/fstat dynamic build is overlinked > And how this is better than just removing the unneeded library from > the Makefile ? > > For the port consumption, I believe that the better solution is to > provide a pack of the .pc files describing base libraries, most likely > as port. We should definitely generate some pc files for our base libraries. We already have quite a few ports that need to hack around because of missing pc files for ssl for example. -- http://www.bluelife.at/