Produce cygwin shared library (cyg<name>.dll) that depends from other shared libraries.

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

 



Hi,

I try to produce a shared library under Cygwin but I have some problem about
cyg
prefix of other shared libraries.

It seems that aclocal and autoconf produce, under Cygwin, shared library
with
prefix cyg instead of lib. (aclocal.m4 code :

    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release}
| $S
ED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'

)

But when you try to link with external shared libraries (example :
-lcygicuin38 or -licuin38),
libtool search only libraries of the form : lib<name>.dll (aclocal.m4 code :

libname_spec='lib$name'

) (so it doesn't found cygicuin38.dll
library) and so produce static library instead of shared. Nevertheless, ld
(gnu linker) found
all kind of libraries (-lcygicuin38 or -licuin38 works with
cygicuin38.dllfile, so you need to
give this option to libtool : -Wl,-licuin38, I don't think this is a good
solution).

So what's the common way to link under Cygwin with a shared library that
file name can be either
lib<name>.dll or cyg<name>.dll (example : libhttpd.dll, cygicuin38.dll) and
is there an option to
produce a shared library with lib prefix ?

I hope my question is clear,
thanks in advance for your response.
Denis
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux