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]

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


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
>From 45a31e758b046622b0a7b0678e75c3ff21244494 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 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

Attachment: ChangeLog
Description: Text document


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