public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Dominik Vogt <vogt@linux.vnet.ibm.com>
To: libffi-discuss@sourceware.org
Subject: [PING 1][PATCH] Use $CFLAGS to calculate multi_os_directory in configure.ac.
Date: Wed, 12 Mar 2014 06:49:00 -0000	[thread overview]
Message-ID: <20140312064927.GA3026@linux.vnet.ibm.com> (raw)
In-Reply-To: <20140303123619.GA7627@linux.vnet.ibm.com>

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

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

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

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


      parent reply	other threads:[~2014-03-12  6:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-03 12:36 [PATCH] " 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 ` Dominik Vogt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140312064927.GA3026@linux.vnet.ibm.com \
    --to=vogt@linux.vnet.ibm.com \
    --cc=libffi-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).