From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14942 invoked by alias); 3 Mar 2014 13:05:53 -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 14929 invoked by uid 89); 3 Mar 2014 13:05:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,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; Mon, 03 Mar 2014 13:05:52 +0000 Received: from [10.179.16.198] (85-76-109-22-nat.elisa-mobile.fi [85.76.109.22]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ssuominen) by smtp.gentoo.org (Postfix) with ESMTPSA id 3C0AD33FABA for ; Mon, 3 Mar 2014 13:05:50 +0000 (UTC) Message-ID: <53147D77.50605@gentoo.org> Date: Mon, 03 Mar 2014 13:05:00 -0000 From: Samuli Suominen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: libffi-discuss@sourceware.org Subject: Re: [PATCH] Use $CFLAGS to calculate multi_os_directory in configure.ac. References: <20140303123619.GA7627@linux.vnet.ibm.com> <531477A9.5010007@gentoo.org> <5314783D.6090401@gentoo.org> <20140303125625.GA18044@linux.vnet.ibm.com> In-Reply-To: <20140303125625.GA18044@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014/txt/msg00020.txt.bz2 On 03/03/14 14:56, Dominik Vogt wrote: > While we're talking about installations paths: "make istall" > should really install ffi.h to /include/libffi... and not > to /lib/libffi.../include. It doen't respect --installdir= > either. > > Ciao > > Dominik ^_^ ^_^ > The headers are arch specific and belong to libdir. The use of pkg-config is mandatory: $ grep include /usr/lib/pkgconfig/libffi.pc includedir=${libdir}/libffi-3.0.13/include Cflags: -I${includedir} $ pkg-config --cflags-only-I libffi -I/usr/lib64/libffi-3.0.13/include $ diff -ur /usr/lib32/libffi-3.0.13 /usr/lib64/libffi-3.0.13 diff -ur /usr/lib32/libffi-3.0.13/include/ffi.h /usr/lib64/libffi-3.0.13/include/ffi.h --- /usr/lib32/libffi-3.0.13/include/ffi.h 2013-10-19 16:20:31.091611936 +0300 +++ /usr/lib64/libffi-3.0.13/include/ffi.h 2013-10-19 16:20:31.239611933 +0300 @@ -58,8 +58,8 @@ #endif /* Specify which architecture libffi is configured for. */ -#ifndef X86 -#define X86 +#ifndef X86_64 +#define X86_64 #endif /* ---- System configuration information --------------------------------- */ I'm sorry but this has been discussed in this very ML many times already, I'm just pointing the conclusion. - Samuli