Complete libstdc++ dll for gcc-4.4.0

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Complete libstdc++ dll for gcc-4.4.0

Takashi Ono
Hi all,

We can complete libstdc++ dll for gcc-4.4.0 by inserting the follwing fragment into
lisctdc++-v3/Makefile.in as Danny was doing.

The objects defining type info for builtin types have to be statically linked for
dll itself as well as building object files.

Regards,

------
ifeq ($(target_triplet),i386-pc-mingw32)
shared-libstdc++: src/.libs/libstdc++-6.dll src/.libs/libstdc++_s.a
src/.libs/libstdc++-6.dll src/.libs/libstdc++_s.a: $(libstdc___la_OBJECTS)
$(libstdc___la_DEPENDENCIES)
        cp -f src/.libs/libstdc++.a libstdc++_t.a
        ar -x libstdc++_t.a array_type_info.o class_type_info.o enum_type_info.o
function_type_info.o fundamental_type_info.o pbase_type_info.o pmem_type_info.o
pointer_type_info.o si_class_type_info.o vmi_class_type_info.o
        ar -d libstdc++_t.a array_type_info.o class_type_info.o enum_type_info.o
function_type_info.o fundamental_type_info.o pbase_type_info.o pmem_type_info.o
pointer_type_info.o si_class_type_info.o vmi_class_type_info.o
        dlltool --export-all --output-def=libstdc++.def libstdc++_t.a
        $(CC) -shared -shared-libgcc -o  src/.libs/libstdc++-6.dll -Wl,--out-
implib,src/.libs/libstdc++_s.a \
          libstdc++.def src/.libs/libstdc++.a
        ar -rs src/.libs/libstdc++_s.a array_type_info.o class_type_info.o
enum_type_info.o function_type_info.o fundamental_type_info.o pbase_type_info.o
pmem_type_info.o pointer_type_info.o si_class_type_info.o vmi_class_type_info.o
        rm -f libstdc++_t.a array_type_info.o class_type_info.o enum_type_info.o
function_type_info.o fundamental_type_info.o pbase_type_info.o pmem_type_info.o
pointer_type_info.o si_class_type_info.o vmi_class_type_info.o

install-shared-libstdc++: installdirs shared-libstdc++
        $(INSTALL_DATA) src/.libs/libstdc++_s.a $(DESTDIR)$(glibcxx_toolexeclibdir)/
        test -z "$(DESTDIR)$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
        $(INSTALL_PROGRAM) src/.libs/libstdc++-6.dll $(DESTDIR)$(bindir)/

clean-shared-libstdc++:
        rm -f src/.libs/libstdc++_dw2_6.dll src/.libs/libstdc++_s.a
endif
-----

----
 Takashi Ono(HK Freak)
 mailto:[hidden email] or [hidden email]
        (Personal Address, checked every morning/evening and holidays)
 mailto:[hidden email]
        (Address for business, checked every working days)
 http://www.hkfreak.net

------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users