From owner-freebsd-ports@FreeBSD.ORG Mon Jun 20 09:45:27 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81A441065673 for ; Mon, 20 Jun 2011 09:45:27 +0000 (UTC) (envelope-from aehlig@linta.de) Received: from linta.de (isilmar-3.linta.de [188.40.101.200]) by mx1.freebsd.org (Postfix) with ESMTP id BEF248FC16 for ; Mon, 20 Jun 2011 09:45:26 +0000 (UTC) Received: (qmail 18984 invoked by uid 10); 20 Jun 2011 09:18:43 -0000 Received: from curry.linta.de by isilmar.linta.de with BSMTP; 20 Jun 2011 09:18:43 -0000 Received: by curry.linta.de (Postfix, from userid 1001) id 4FB8D1CC42; Mon, 20 Jun 2011 10:18:30 +0100 (BST) Date: Mon, 20 Jun 2011 10:18:30 +0100 From: "Klaus T. Aehlig" To: Stephen Montgomery-Smith Message-ID: <20110620091828.GA16267@curry.linta.de> References: <4DFEE295.3090204@missouri.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DFEE295.3090204@missouri.edu> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "ports@FreeBSD.org" , Stas Timokhin , ade@freebsd.org Subject: Re: libtool issues 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: Mon, 20 Jun 2011 09:45:27 -0000 Dear Stephen, > Or one could instead modify devel/libtools, maybe something like this. > Rename bin/libtool to libexec/libtool.sh, and then rewrite the libtool > script as something like: > > #!/bin/sh > PREFIX=/usr/local > TEMPCCDIR=`mktemp -d -t /tmp` > export PATH=${WRKDIR}:$PATH > ${LN} -s ${LOCALBASE}/bin/${CC} ${TEMPCCDIR}/cc > ${LN} -s ${LOCALBASE}/bin/${CXX} ${TEMPCCDIR}/c++ > ${PREFIX}/libexec/libtool.sh $@ > rm -r ${TEMPCCDIR} besides the obvious point that ${TMPCCDIR} should be under ${WRKDIR}, I'm getting nervous reading ${LOCALBASE}/bin/${CC} which seems to assume that ${CC} is the name of a binary to be found in ${LOCALBASE}/bin; this might well be if libtool is used in conjunction with USE_GCC -- but are you sure that this will always be the case? devel/libtool does not have such a dependency, and if using ccache (as I do on my machines) you get something like /usr/ports/devel/libtool>make -V CC /usr/local/libexec/ccache/world/cc /usr/ports/devel/libtool> Am I missing something which makes your suggested changes to devel/libtool still save? Best, Klaus