diff options
author | davek <davek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-23 05:05:35 +0000 |
---|---|---|
committer | davek <davek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-23 05:05:35 +0000 |
commit | 41f834440c6ccfa2a41c886f468c778aaa238d94 (patch) | |
tree | 001ab977795e25f5b8478f231054b6d12b5f139a /libobjc | |
parent | 201b2150310da54289444ef733cb3ef7f21b7b97 (diff) | |
download | gcc-41f834440c6ccfa2a41c886f468c778aaa238d94.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157662 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc')
-rw-r--r-- | libobjc/ChangeLog | 9 | ||||
-rw-r--r-- | libobjc/Makefile.in | 29 | ||||
-rwxr-xr-x | libobjc/configure | 10 | ||||
-rw-r--r-- | libobjc/configure.ac | 4 |
4 files changed, 20 insertions, 32 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog index f64f9dc19b8..a6a491ac170 100644 --- a/libobjc/ChangeLog +++ b/libobjc/ChangeLog @@ -1,3 +1,12 @@ +2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com> + + 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. + 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * configure: Regenerate. diff --git a/libobjc/Makefile.in b/libobjc/Makefile.in index 788dfb5acca..71faf8ac43d 100644 --- a/libobjc/Makefile.in +++ b/libobjc/Makefile.in @@ -291,35 +291,6 @@ libobjc_gc$(libsuffix).la: $(OBJS_GC) -version-info $(LIBOBJC_GC_VERSION) $(extra_ldflags_libobjc) \ $(LTLDFLAGS) -# -# FIXME -- The following part does not fit in the libtool context. -# Libtool is supposed to [going to] be able to create a win 32 DLL -# without extra code but since I don't have a win machine to test -# if it already works, I leave the old code here. -# -libobjc_s.a: libobjc.la - mv libobjc.a libobjc_s.a - -# Create a relocatable DLL -libobjc.dll: libobjc_s.a libobjc_entry.o - $(CC) -mdll -Wl,--base-file -Wl,libobjc.base \ - -o libobjc.dll libobjc_s.a libobjc_entry.o -lkernel32 - $(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/libobjc.def \ - --base-file libobjc.base --output-exp libobjc.exp - $(GCC_FOR_TARGET) -mdll -Wl,--base-file libobjc.base libobjc.exp \ - -o libobjc.dll libobjc_s.a libobjc_entry.o -lkernel32 - $(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/libobjc.def \ - --base-file libobjc.base --output-exp libobjc.exp - $(GCC_FOR_TARGET) libobjc.exp -mdll \ - -o libobjc.dll libobjc_s.a libobjc_entry.o -lkernel32 - $(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/libobjc.def \ - --output-lib libobjc.a -# -# -# -# -# - info: dvi: pdf: diff --git a/libobjc/configure b/libobjc/configure index 123780a8fa1..1dfcb31bd21 100755 --- a/libobjc/configure +++ b/libobjc/configure @@ -3321,6 +3321,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 @@ -10562,7 +10566,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10565 "configure" +#line 10569 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10668,7 +10672,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10671 "configure" +#line 10675 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11242,7 +11246,7 @@ if test "${enable_sjlj_exceptions+set}" = set; then : enableval=$enable_sjlj_exceptions; : else cat > conftest.$ac_ext << EOF -#line 11245 "configure" +#line 11249 "configure" @interface Frob @end @implementation Frob 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) |