From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13960 invoked by alias); 20 Aug 2014 07:19:42 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 13950 invoked by uid 89); 20 Aug 2014 07:19:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 20 Aug 2014 07:19:41 +0000 Received: from [192.168.1.100] (mobile-internet-bcee61-184.dhcp.inet.fi [188.238.97.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ssuominen) by smtp.gentoo.org (Postfix) with ESMTPSA id B832B33FB78 for ; Wed, 20 Aug 2014 07:19:38 +0000 (UTC) Message-ID: <53F44B9A.30208@gentoo.org> Date: Wed, 20 Aug 2014 07:19:00 -0000 From: Samuli Suominen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: libffi-discuss@sourceware.org Subject: Re: libffi does not respect libdir configuration References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014/txt/msg00080.txt.bz2 On 19/08/14 23:55, Paolo Borelli wrote: > Hi, > > as far as I can see it seems libffi always installs in the > $(prefix)/lib64 directory, even when building with a specifc > --libdir=$prefix/lib configuration. > > I am seeing this problem on a centos 6 system when building the 3.0.13 tarball. > > This is a major problem when trying to build the gtk stack since > jhbuild (which is gtk's conventional build tool) enforces the use of > lib over lib64 for all the other libraries. > > > Thanks, > > Paolo This has been a problem for Gentoo as well, so we are simply overriding it using 1-liner sed: sed -i -e 's:@toolexeclibdir@:$(libdir):g' Makefile.in (And making sure the generated libffi.pc after install is still is OK as a precaution) I'm just saying as a hint, for any other packagers who don't want the overly smart logic from configure to be used. - Samuli