Mail Archives: cygwin/2003/01/21/03:14:38
Hi.
Problem summary:
I'm unable to build shared library (dll) using current libtool-devel.
Here is a fragment from my build log:
/bin/bash ../libtool --mode=link gcc -g -O2 -Wall -o libioperm.la -rpath /usr/lib ioperm.lo
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries
ar cru .libs/libioperm.a ioperm.o
ranlib .libs/libioperm.a
creating libioperm.la
(cd .libs && rm -f libioperm.la && ln -s ../libioperm.la libioperm.la)
Problem is probably in my configure script:
cygwin* | mingw* | pw32*)
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
# as there is no search path for DLLs.
hardcode_libdir_flag_spec='-L$libdir'
allow_undefined_flag=unsupported
always_export_symbols=no
enable_shared_with_static_runtimes=yes
If I remove the line with "allow_undefined_flag=unsupported" from the configure
script, dll build works (here is the log):
/bin/bash ../libtool --mode=link gcc -g -O2 -Wall -o libioperm.la -rpath /usr/lib ioperm.lo
gcc -shared .libs/ioperm.o -o .libs/cygioperm-0.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libioperm.dll.a
Creating library file: .libs/libioperm.dll.a
ar cru .libs/libioperm.a ioperm.o
ranlib .libs/libioperm.a
creating libioperm.la
(cd .libs && rm -f libioperm.la && ln -s ../libioperm.la libioperm.la)
Historical info:
Same configuration (same Makefile.am, same sources) built on September 2002
worked ok.
... and configure script was without "allow_undefined_flag=..." line for cygwin.
Questions:
1. How to build dlls using current libtool-devel?
2. Is this a bug in my configuration?
3. Is this a bug in libtool-devel?
Here is my Makefile.am file:
lib_LTLIBRARIES = libioperm.la
libioperm_la_SOURCES = ioperm.c
Thank you.
--
+-------------------------------------------+
| Marcel Telka e-mail: marcel AT telka DOT sk |
| homepage: http://telka.sk/ |
| jabber: marcel AT jabber DOT sk |
+-------------------------------------------+
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -