public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Use $CFLAGS to calculate multi_os_directory in configure.ac.
@ 2014-03-03 12:36 Dominik Vogt
  2014-03-03 12:41 ` Samuli Suominen
  2014-03-12  6:49 ` [PING 1][PATCH] " Dominik Vogt
  0 siblings, 2 replies; 9+ messages in thread
From: Dominik Vogt @ 2014-03-03 12:36 UTC (permalink / raw)
  To: libffi-discuss

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

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

[-- Attachment #2: 0001-Use-CFLAGS-to-calculate-multi_os_directory-in-config.patch --]
[-- Type: text/x-diff, Size: 812 bytes --]

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 #3: ChangeLog --]
[-- Type: text/plain, Size: 130 bytes --]

2014-03-03  Dominik Vogt  <dominik(dot)vogt(at)gmx(dot)de>

	* configure.ac (multi_os_directory): Use $CFLAGS to get correct dir


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-12  6:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-03 12:36 [PATCH] Use $CFLAGS to calculate multi_os_directory in configure.ac Dominik Vogt
2014-03-03 12:41 ` Samuli Suominen
2014-03-03 12:43   ` Samuli Suominen
2014-03-03 12:56     ` Dominik Vogt
2014-03-03 13:05       ` Samuli Suominen
2014-03-03 13:34         ` Dominik Vogt
2014-03-03 13:44           ` Samuli Suominen
2014-03-03 14:10         ` Anthony Green
2014-03-12  6:49 ` [PING 1][PATCH] " Dominik Vogt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).