diff options
Diffstat (limited to 'libffi/configure.in')
-rw-r--r-- | libffi/configure.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libffi/configure.in b/libffi/configure.in index 06b5fa936c9..aa57ed1fa93 100644 --- a/libffi/configure.in +++ b/libffi/configure.in @@ -172,7 +172,11 @@ else toolexecdir='$(libdir)/gcc-lib/$(target_alias)' toolexeclibdir='$(libdir)' fi -toolexeclibdir=$toolexeclibdir/`$CC -print-multi-os-directory` +multi_os_directory=`$CC -print-multi-os-directory` +case $multi_os_directory in + .) ;; # Avoid trailing /. + *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; +esac AC_SUBST(toolexecdir) AC_SUBST(toolexeclibdir) |