diff mbox

[libffi] : Enable build for DLL version for x64 windows targets

Message ID CAEwic4ahCzpeQcxPdTx_AriG+mAxzGya59B6ei4rh+tjPkpYAg@mail.gmail.com
State New
Headers show

Commit Message

Kai Tietz Feb. 8, 2012, 10:01 p.m. UTC
Hi,

the following patch enables DLL build for x64 windows target.

ChangeLog

2012-02-08  Kai Tietz  <ktietz@redhat.com>

          * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
windows target.
          * configure: Regenerated

Tested for x86_64-w64-mingw32.  Ok for apply?

Regards,
Kai
diff mbox

Patch

Index: configure.ac
===================================================================
--- configure.ac        (revision 184020)
+++ configure.ac        (working copy)
@@ -166,6 +166,15 @@ 

   x86_64-*-cygwin* | x86_64-*-mingw*)
        TARGET=X86_WIN64; TARGETDIR=x86
+       # 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
        ;;

   x86_64-*-*)