bug-gnu-utils
[Top][All Lists]
Advanced

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

Dynamic libs in the Cygwin port of GAWK - possible config bug.


From: Kenny McCormack
Subject: Dynamic libs in the Cygwin port of GAWK - possible config bug.
Date: Fri, 20 Sep 2002 16:30:15 -0500

Disclaimer: I don't have the time or inclination to test this further.

That said:
        1) The configure script for GAWK decides whether or not to compile
in the extension() function by compiling a trivial C program with -ldl.
        2) Cygwin does seem to support dynamic libs - dlfcn.h is present
and (AFAICT) declares the needed things; however, there is no -ldl in
Cygwin-land.  Thus, the test alluded to above fails (*).

Thus, it seems that if the configure were changed, extension() could be
enabled in the Cygwin version.  However, it is unclear whether/which
Windows DLLs could/would, in fact, work with such a version.  Maybe this is
why it was left un-enabled.

(*) Note that this is not uncommon in Cygwin - namely, that some
functionality that requires an explicit -l<something> under Unix "comes for
free" (that is, is in the basic libc) in Cygwin.  I've hit this at least
once in the past when porting Unix stuff to Cygwin.




reply via email to

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