On Mon, May 9, 2011 at 10:29 AM, Tim Edwards <[email protected]> wrote:
> Hello Satya,
>
>> I just rebuilt xcircuit. I had missed that the configure.in needs to
>> be tweaked for working on cygwin. The following patch, followed by
>> autoreconf -fiv seems to do the trick for me.
>
>> -       SHDLIB_EXT=".dll"
>> +       SHDLIB_EXT=".dll.a"
>
> This looks like it's turning a shared object (dynamic load) library
> (.dll) into a static library (.a).  It suggests that the linker flag
> "-shared" is being ignored in the original case.  Or are you having
> problems at run-time?  I know that Cygwin does not recognize the
> "-Wl,-rpath,..." argument to the linker.  To get a program to find
> any .dll files it needs at run-time, it is necessary to do
>
>        export PATH=${PATH}:/usr/local/lib
>
> (The path to the .dll file should be given;  /usr/local/lib is the
> default path for the Tcl/Tk DLLs.)

The Tcl/Tk (and other) libraries in Cygwin come as .dll and are
installed /bin. However, I think the .dll files do not have
information to enable linking to them. .dll.a files  installed in /lib
have the link information (probably similar to .lib created by MSVC).

The changes I mention are required to get through the configure step.
After that the compile and run-time are fine.

Regards,
Satya

_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to