Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created February 8, 2012 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luislavena/c90483a2882ac3041979 to your computer and use it in GitHub Desktop.
Save luislavena/c90483a2882ac3041979 to your computer and use it in GitHub Desktop.
diff --git a/configure.ac b/configure.ac
index df20c2f..efe013a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -189,6 +189,15 @@ case "$host" in
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-*-*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment