diff options
author | davek <davek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-26 03:33:09 +0000 |
---|---|---|
committer | davek <davek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-26 03:33:09 +0000 |
commit | 9dfad5757a438beda9edddb3ee9bcab5d8901c21 (patch) | |
tree | a7920c42853a217d356905e5502ddfe778b8197e /libffi/configure.ac | |
parent | 06a9ac974c8f44b968450f68c52a3f124b097b53 (diff) | |
download | gcc-9dfad5757a438beda9edddb3ee9bcab5d8901c21.tar.gz |
PR target/40125
* configure.ac (AM_LTLDFLAGS): Add -bindir option for windows DLLs.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169272 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/configure.ac')
-rw-r--r-- | libffi/configure.ac | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libffi/configure.ac b/libffi/configure.ac index f9bde00bd30..a7e97d5ec71 100644 --- a/libffi/configure.ac +++ b/libffi/configure.ac @@ -82,8 +82,15 @@ case "$host" in ;; i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2*) TARGET=X86_WIN32; TARGETDIR=x86 - # All mingw/cygwin/win32 builds require this for sharedlib - AM_LTLDFLAGS="-no-undefined" + # All mingw/cygwin/win32 builds require -no-undefined for sharedlib. + # We must also check with_cross_host to decide if this is a native + # or cross-build and select where to install dlls appropriately. + if test -n "$with_cross_host" && + test x"$with_cross_host" != x"no"; then + AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"'; + else + AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"'; + fi ;; i?86-*-darwin*) TARGET=X86_DARWIN; TARGETDIR=x86 |