From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24791 invoked by alias); 3 Mar 2014 12:36:27 -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 24722 invoked by uid 89); 3 Mar 2014 12:36:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp11.uk.ibm.com Received: from e06smtp11.uk.ibm.com (HELO e06smtp11.uk.ibm.com) (195.75.94.107) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 03 Mar 2014 12:36:25 +0000 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 3 Mar 2014 12:36:21 -0000 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 3 Mar 2014 12:36:19 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 8CD4F219004D for ; Mon, 3 Mar 2014 12:36:15 +0000 (GMT) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s23Ca7eF64094364 for ; Mon, 3 Mar 2014 12:36:07 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s23CaISD031200 for ; Mon, 3 Mar 2014 05:36:18 -0700 Received: from bl3ahm9f.de.ibm.com (dyn-9-152-212-170.boeblingen.de.ibm.com [9.152.212.170]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s23CaHWU031160 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Mon, 3 Mar 2014 05:36:17 -0700 Received: from dvogt by bl3ahm9f.de.ibm.com with local (Exim 4.76) (envelope-from ) id 1WKS6V-000207-8r; Mon, 03 Mar 2014 13:36:19 +0100 Date: Mon, 03 Mar 2014 12:36:00 -0000 From: Dominik Vogt To: libffi-discuss@sourceware.org Subject: [PATCH] Use $CFLAGS to calculate multi_os_directory in configure.ac. Message-ID: <20140303123619.GA7627@linux.vnet.ibm.com> Reply-To: vogt@linux.vnet.ibm.com MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14030312-5024-0000-0000-0000090693E4 X-IsSubscribed: yes X-SW-Source: 2014/txt/msg00015.txt.bz2 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 342 configure.ac forgets to use $CFLAGS when running $CC -print-multi-os-directory This may result in a bad installation path for the library (on s390 I get ..../lib/../lib64 instead of just ..../lib" as it should be). The attached patch fixes that (configure needs to be regenerated.) Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany --qDbXVdCdHGoSgWSk Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Use-CFLAGS-to-calculate-multi_os_directory-in-config.patch" Content-length: 813 >From 45a31e758b046622b0a7b0678e75c3ff21244494 Mon Sep 17 00:00:00 2001 From: Dominik Vogt Date: Mon, 3 Mar 2014 13:30:59 +0100 Subject: [PATCH 1/2] Use $CFLAGS to calculate multi_os_directory in configure.ac. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4dd919d..4722b40 100644 --- a/configure.ac +++ b/configure.ac @@ -575,7 +575,7 @@ if test "x$GCC" = "xyes"; then toolexecdir='$(libdir)/gcc-lib/$(target_alias)' toolexeclibdir='$(libdir)' fi - multi_os_directory=`$CC -print-multi-os-directory` + multi_os_directory=`$CC $CFLAGS -print-multi-os-directory` case $multi_os_directory in .) ;; # Avoid trailing /. ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; -- 1.7.9.5 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=ChangeLog Content-length: 130 2014-03-03 Dominik Vogt * configure.ac (multi_os_directory): Use $CFLAGS to get correct dir --qDbXVdCdHGoSgWSk--