libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MSYS postdeps question


From: Kevin Tew
Subject: Re: MSYS postdeps question
Date: Fri, 04 Feb 2005 13:49:41 -0700
User-agent: Debian Thunderbird 1.0 (X11/20050116)

This is what I get with
libaspell_la_LIBADD =  $(LIBINTL) -lpthreadGC1 -lole32

/bin/sh ./libtool --mode=link g++ -g -O2 -fno-exceptions -Wl,--enable-runtime-pseudo-reloc -o libaspell.la -rpath /usr/local/lib -version-info 17:0:2 -no-undefined common/cache.lo common/string.lo common/getdata.lo common/itemize.lo common/file_util.lo common/string_map.lo common/string_list.lo common/config.lo common/posib_err.lo common/errors.lo common/error.lo common/fstream.lo common/iostream.lo common/info.lo common/can_have_error.lo common/convert.lo common/convert_filter.lo common/speller.lo common/checker.lo common/filter.lo common/objstack.lo common/strtonum.lo common/gettext_init.lo common/file_data_util.lo modules/speller/default/readonly_ws.lo modules/speller/default/suggest.lo modules/speller/default/data.lo modules/speller/default/multi_ws.lo modules/speller/default/phonetic.lo modules/speller/default/writable.lo modules/speller/default/speller_impl.lo modules/speller/default/checker_impl.lo modules/speller/default/phonet.lo modules/speller/default/typo_editdist.lo modules/speller/default/editdist.lo modules/speller/default/primes.lo modules/speller/default/language.lo modules/speller/default/leditdist.lo modules/speller/default/affix.lo lib/word_list-c.lo lib/info-c.lo lib/mutable_container-c.lo lib/error-c.lo lib/string_map-c.lo lib/new_config.lo lib/config-c.lo lib/string_enumeration-c.lo lib/can_have_error-c.lo lib/dummy.lo lib/new_filter.lo lib/new_fmode.lo lib/string_list-c.lo lib/find_speller.lo lib/speller-c.lo lib/string_pair_enumeration-c.lo lib/new_checker.lo lib/checker-c.lo lib/document_checker-c.lo lib/convert-c.lo modules/filter/url.lo modules/filter/genconv.lo modules/filter/email.lo modules/filter/tex.lo modules/filter/sgml.lo modules/filter/context.lo modules/filter/nroff.lo modules/filter/texinfo.lo -lpthreadGC1 -lole32

*** Warning: linker path does not have real file for library -lpthreadGC1.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libpthreadGC1 and none of the candidates passed a file format test
*** using a file magic. Last file checked: /mingw/lib/gcc-lib/mingw32/3.2.3/../../..//libpthreadGC1.a

*** Warning: linker path does not have real file for library -lole32.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libole32 and none of the candidates passed a file format test
*** using a file magic. Last file checked: /mingw/lib/gcc-lib/mingw32/3.2.3/../../..//libole32.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.
ar cru .libs/libaspell.a common/.libs/cache.o common/.libs/string.o common/.libs/getdata.o common/.libs/itemize.o common/.libs/file_util.o common/.libs/string_map.o common/.libs/string_list.o common/.libs/config.o common/.libs/posib_err.o common/.libs/errors.o common/.libs/error.o common/.libs/fstream.o common/.libs/iostream.o common/.libs/info.o common/.libs/can_have_error.o common/.libs/convert.o common/.libs/convert_filter.o common/.libs/speller.o common/.libs/checker.o common/.libs/filter.o common/.libs/objstack.o common/.libs/strtonum.o common/.libs/gettext_init.o common/.libs/file_data_util.o modules/speller/default/.libs/readonly_ws.o modules/speller/default/.libs/suggest.o modules/speller/default/.libs/data.o modules/speller/default/.libs/multi_ws.o modules/speller/default/.libs/phonetic.o modules/speller/default/.libs/writable.o modules/speller/default/.libs/speller_impl.o modules/speller/default/.libs/checker_impl.o modules/speller/default/.libs/phonet.o modules/speller/default/.libs/typo_editdist.o modules/speller/default/.libs/editdist.o modules/speller/default/.libs/primes.o modules/speller/default/.libs/language.o modules/speller/default/.libs/leditdist.o modules/speller/default/.libs/affix.o lib/.libs/word_list-c.o lib/.libs/info-c.o lib/.libs/mutable_container-c.o lib/.libs/error-c.o lib/.libs/string_map-c.o lib/.libs/new_config.o lib/.libs/config-c.o lib/.libs/string_enumeration-c.o lib/.libs/can_have_error-c.o lib/.libs/dummy.o lib/.libs/new_filter.o lib/.libs/new_fmode.o lib/.libs/string_list-c.o lib/.libs/find_speller.o lib/.libs/speller-c.o lib/.libs/string_pair_enumeration-c.o lib/.libs/new_checker.o lib/.libs/checker-c.o lib/.libs/document_checker-c.o lib/.libs/convert-c.o modules/filter/.libs/url.o modules/filter/.libs/genconv.o modules/filter/.libs/email.o modules/filter/.libs/tex.o modules/filter/.libs/sgml.o modules/filter/.libs/context.o modules/filter/.libs/nroff.o modules/filter/.libs/texinfo.o
ranlib .libs/libaspell.a
creating libaspell.la
(cd .libs && rm -f libaspell.la && ln -s ../libaspell.la libaspell.la)
/bin/sh ./libtool --mode=link g++ -g -O2 -fno-exceptions -Wl,--enable-runtime-pseudo-reloc -o libpspell.la -rpath /usr/local/lib -version-info 17:0:2 -no-undefined lib/dummy.lo libaspell.la /bin/sh ./libtool --mode=link g++ -g -O2 -fno-exceptions -Wl,--enable-runtime-pseudo-reloc -o aspell.exe prog/aspell.o prog/check_funs.o prog/checker_string.o libaspell.la


If I put then on the postdeps line with -lshell32 -lmingw32 etc It builds perfectly?





/bin/sh ./libtool --mode=link g++ -g -O2 -fno-exceptions -Wl,--enable-runtime-pseudo-reloc -o libaspell.la -rpath /usr/local/lib -version-info 17:0:2 -no-undefined common/cache.lo common/string.lo common/getdata.lo common/itemize.lo common/file_util.lo common/string_map.lo common/string_list.lo common/config.lo common/posib_err.lo common/errors.lo common/error.lo common/fstream.lo common/iostream.lo common/info.lo common/can_have_error.lo common/convert.lo common/convert_filter.lo common/speller.lo common/checker.lo common/filter.lo common/objstack.lo common/strtonum.lo common/gettext_init.lo common/file_data_util.lo modules/speller/default/readonly_ws.lo modules/speller/default/suggest.lo modules/speller/default/data.lo modules/speller/default/multi_ws.lo modules/speller/default/phonetic.lo modules/speller/default/writable.lo modules/speller/default/speller_impl.lo modules/speller/default/checker_impl.lo modules/speller/default/phonet.lo modules/speller/default/typo_editdist.lo modules/speller/default/editdist.lo modules/speller/default/primes.lo modules/speller/default/language.lo modules/speller/default/leditdist.lo modules/speller/default/affix.lo lib/word_list-c.lo lib/info-c.lo lib/mutable_container-c.lo lib/error-c.lo lib/string_map-c.lo lib/new_config.lo lib/config-c.lo lib/string_enumeration-c.lo lib/can_have_error-c.lo lib/dummy.lo lib/new_filter.lo lib/new_fmode.lo lib/string_list-c.lo lib/find_speller.lo lib/speller-c.lo lib/string_pair_enumeration-c.lo lib/new_checker.lo lib/checker-c.lo lib/document_checker-c.lo lib/convert-c.lo modules/filter/url.lo modules/filter/genconv.lo modules/filter/email.lo modules/filter/tex.lo modules/filter/sgml.lo modules/filter/context.lo modules/filter/nroff.lo modules/filter/texinfo.lo rm -fr .libs/libaspell.a .libs/libaspell.la .libs/libaspell.lai g++ -shared -nostdlib C:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../dllcrt2.o C:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/crtbegin.o common/.libs/cache.o common/.libs/string.o common/.libs/getdata.o common/.libs/itemize.o common/.libs/file_util.o common/.libs/string_map.o common/.libs/string_list.o common/.libs/config.o common/.libs/posib_err.o common/.libs/errors.o common/.libs/error.o common/.libs/fstream.o common/.libs/iostream.o common/.libs/info.o common/.libs/can_have_error.o common/.libs/convert.o common/.libs/convert_filter.o common/.libs/speller.o common/.libs/checker.o common/.libs/filter.o common/.libs/objstack.o common/.libs/strtonum.o common/.libs/gettext_init.o common/.libs/file_data_util.o modules/speller/default/.libs/readonly_ws.o modules/speller/default/.libs/suggest.o modules/speller/default/.libs/data.o modules/speller/default/.libs/multi_ws.o modules/speller/default/.libs/phonetic.o modules/speller/default/.libs/writable.o modules/speller/default/.libs/speller_impl.o modules/speller/default/.libs/checker_impl.o modules/speller/default/.libs/phonet.o modules/speller/default/.libs/typo_editdist.o modules/speller/default/.libs/editdist.o modules/speller/default/.libs/primes.o modules/speller/default/.libs/language.o modules/speller/default/.libs/leditdist.o modules/speller/default/.libs/affix.o lib/.libs/word_list-c.o lib/.libs/info-c.o lib/.libs/mutable_container-c.o lib/.libs/error-c.o lib/.libs/string_map-c.o lib/.libs/new_config.o lib/.libs/config-c.o lib/.libs/string_enumeration-c.o lib/.libs/can_have_error-c.o lib/.libs/dummy.o lib/.libs/new_filter.o lib/.libs/new_fmode.o lib/.libs/string_list-c.o lib/.libs/find_speller.o lib/.libs/speller-c.o lib/.libs/string_pair_enumeration-c.o lib/.libs/new_checker.o lib/.libs/checker-c.o lib/.libs/document_checker-c.o lib/.libs/convert-c.o modules/filter/.libs/url.o modules/filter/.libs/genconv.o modules/filter/.libs/email.o modules/filter/.libs/tex.o modules/filter/.libs/sgml.o modules/filter/.libs/context.o modules/filter/.libs/nroff.o modules/filter/.libs/texinfo.o -LC:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3 -LC:/MinGW/bin/../lib/gcc-lib -L/mingw/lib/gcc-lib/mingw32/3.2.3 -LC:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../../mingw32/lib -L/mingw/lib/gcc-lib/mingw32/3.2.3/../../../../mingw32/lib -LC:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../.. -L/mingw/lib/gcc-lib/mingw32/3.2.3/../../.. -lstdc++ -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lole32 -lpthreadGC1 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt C:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/crtend.o -Wl,--enable-runtime-pseudo-reloc -o .libs/libaspell-15.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libaspell.dll.a
Creating library file: .libs/libaspell.dll.a
creating libaspell.la
(cd .libs && rm -f libaspell.la && ln -s ../libaspell.la libaspell.la)
/bin/sh ./libtool --mode=link g++ -g -O2 -fno-exceptions -Wl,--enable-runtime-pseudo-reloc -o libpspell.la -rpath /usr/local/lib -version-info 17:0:2 -no-undefined lib/dummy.lo libaspell.la
rm -fr  .libs/libpspell.dll.a .libs/libpspell.la .libs/libpspell.lai
g++ -shared -nostdlib C:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../dllcrt2.o C:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/crtbegin.o lib/.libs/dummy.o ./.libs/libaspell.dll.a -LC:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3 -LC:/MinGW/bin/../lib/gcc-lib -L/mingw/lib/gcc-lib/mingw32/3.2.3 -LC:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../../mingw32/lib -L/mingw/lib/gcc-lib/mingw32/3.2.3/../../../../mingw32/lib -LC:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../.. -L/mingw/lib/gcc-lib/mingw32/3.2.3/../../.. -lstdc++ -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lole32 -lpthreadGC1 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt C:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/crtend.o -Wl,--enable-runtime-pseudo-reloc -o .libs/libpspell-15.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libpspell.dll.a


Bob Friesenhahn wrote:

On Thu, 3 Feb 2005, Kevin Tew wrote:

I want to add -lole32 to my libtool file. Is there anyway to do this programatically using autoconf, etc
Right now I have to paste it in manually


Normally you accomplish this by appending -lole32 to the LIBS definition in the application configure script. I already do this for the Windows GDI library under both MinGW and Cygwin so it should work.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen






reply via email to

[Prev in Thread] Current Thread [Next in Thread]