summaryrefslogtreecommitdiff
path: root/libobjc/configure.ac
diff options
context:
space:
mode:
authorDave Korn <dave.korn.cygwin@gmail.com>2010-03-23 05:05:35 +0000
committerDave Korn <davek@gcc.gnu.org>2010-03-23 05:05:35 +0000
commit1922295935280633da068157c633c3e4cf0cb209 (patch)
tree001ab977795e25f5b8478f231054b6d12b5f139a /libobjc/configure.ac
parentd79238bcd68bdd31b9ce890840b79760e8a4eac5 (diff)
downloadgcc-1922295935280633da068157c633c3e4cf0cb209.tar.gz
re PR libobjc/30445 (Fix for FIXME in gcc-4_2-branch/libobjc/Makefile.in)
PR libobjc/30445 * configure.ac (extra_ldflags_libobjc): Define appropriately for Cygwin and MinGW hosts. * Makefile.am (libobjc_s.a): Remove dead pre-libtool target. (libobjc.dll): Likewise. * configure: Regenerate. From-SVN: r157662
Diffstat (limited to 'libobjc/configure.ac')
-rw-r--r--libobjc/configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/libobjc/configure.ac b/libobjc/configure.ac
index c2d860ff724..8820edc7e64 100644
--- a/libobjc/configure.ac
+++ b/libobjc/configure.ac
@@ -161,6 +161,10 @@ case "${host}" in
# Darwin needs -single_module when linking libobjc
extra_ldflags_libobjc=-Wl,-single_module
;;
+ *-cygwin*|*-mingw*)
+ # Tell libtool to build DLLs on Windows
+ extra_ldflags_libobjc='-no-undefined -bindir $(bindir)'
+ ;;
esac
AC_SUBST(extra_ldflags_libobjc)