From owner-freebsd-ports@FreeBSD.ORG Thu Oct 4 19:01:42 2007 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 5477416A417 for ; Thu, 4 Oct 2007 19:01:42 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from cp65.agava.net (cp65.agava.net [89.108.66.215]) by mx1.freebsd.org (Postfix) with ESMTP id 13A7D13C46A for ; Thu, 4 Oct 2007 19:01:42 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=nexii.panopticon) by cp65.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.44 (FreeBSD)) id 1IdVx5-0003kn-Dk for freebsd-ports@freebsd.org; Thu, 04 Oct 2007 23:01:39 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.2]) by nexii.panopticon (Postfix) with ESMTP id 5CFCC17041 for ; Thu, 4 Oct 2007 23:02:59 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id BFEBF405A; Thu, 4 Oct 2007 23:03:04 +0400 (MSD) Date: Thu, 4 Oct 2007 23:03:04 +0400 From: Dmitry Marakasov To: freebsd-ports@freebsd.org Message-ID: <20071004190304.GA9491@hades.panopticon> Mail-Followup-To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp65.agava.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - amdmi3.ru X-Source: X-Source-Args: X-Source-Dir: Subject: Idea: static builds 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: Thu, 04 Oct 2007 19:01:42 -0000 Hi! I just have an idea that may be useful: static port builds. This can help produce packages without any depends, which may be useful sometimes. Implementation seem pretty straightfoward to me: - Introduce STATIC_BUILD variable that changes usual build behavior - Process LIB_DEPENDS in a different way: check .a instead of .so.*, and fail if .a is missing, and .so is present (i.e. needed static lib is not available at all), don't add library ports to package depends - Add -static to CFLAGS/CXXFLAGS Any comments? I will try to experiment with this for now. -- Best regards, Dmitry Marakasov mailto:amdmi3@amdmi3.ru