From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30949 invoked by alias); 12 Mar 2014 06:49:36 -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 30939 invoked by uid 89); 12 Mar 2014 06:49:35 -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,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp15.uk.ibm.com Received: from e06smtp15.uk.ibm.com (HELO e06smtp15.uk.ibm.com) (195.75.94.111) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 12 Mar 2014 06:49:33 +0000 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 12 Mar 2014 06:49:30 -0000 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 12 Mar 2014 06:49:29 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 755112190041 for ; Wed, 12 Mar 2014 06:49:24 +0000 (GMT) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s2C6nG4p57540836 for ; Wed, 12 Mar 2014 06:49:16 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s2C6nSap024128 for ; Wed, 12 Mar 2014 00:49:28 -0600 Received: from bl3ahm9f.de.ibm.com (dyn-9-152-212-170.boeblingen.de.ibm.com [9.152.212.170]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s2C6nRt8024121 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 12 Mar 2014 00:49:28 -0600 Received: from dvogt by bl3ahm9f.de.ibm.com with local (Exim 4.76) (envelope-from ) id 1WNcyl-0000nX-M4 for libffi-discuss@sourceware.org; Wed, 12 Mar 2014 07:49:27 +0100 Date: Wed, 12 Mar 2014 06:49:00 -0000 From: Dominik Vogt To: libffi-discuss@sourceware.org Subject: [PING 1][PATCH] Use $CFLAGS to calculate multi_os_directory in configure.ac. Message-ID: <20140312064927.GA3026@linux.vnet.ibm.com> Reply-To: vogt@linux.vnet.ibm.com References: <20140303123619.GA7627@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: <20140303123619.GA7627@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14031206-0342-0000-0000-0000081547AB X-IsSubscribed: yes X-SW-Source: 2014/txt/msg00028.txt.bz2 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 466 On Mon, Mar 03, 2014 at 01:36:19PM +0100, Dominik Vogt wrote: > 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.) (ChangeLog included in the patch this time.) Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany --Kj7319i9nmIyA2yE 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: 1191 >From 27d64a675b84007772c5839dada0c8c0e9b02081 Mon Sep 17 00:00:00 2001 From: Dominik Vogt Date: Mon, 3 Mar 2014 13:30:59 +0100 Subject: [PATCH] Use $CFLAGS to calculate multi_os_directory in configure.ac. --- ChangeLog | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 03bfdff..8dfa7e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-03-03 Dominik Vogt + + * configure.ac (multi_os_directory): Use $CFLAGS to get correct dir + 2014-03-01 Anthony Green * Makefile.am (EXTRA_DIST): Replace old scripts with 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 --Kj7319i9nmIyA2yE--