This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PING 1][PATCH] Use $CFLAGS to calculate multi_os_directory in configure.ac.


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
>From 27d64a675b84007772c5839dada0c8c0e9b02081 Mon Sep 17 00:00:00 2001
From: Dominik Vogt <vogt@de.ibm.com>
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  <dominik(dot)vogt(at)gmx(dot)de>
+
+	* configure.ac (multi_os_directory): Use $CFLAGS to get correct dir
+
 2014-03-01  Anthony Green  <green@moxielogic.com>
 
 	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]