Commit 7ba4c5d72aa440a4b21fb57e999e67c5957761da

Dominik Vogt 2014-05-11T09:52:47

Use to get correct dir

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/configure.ac b/configure.ac
index 3058095..4a1708b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -596,7 +596,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 ;;