From: Peter J. F. I. <pjf...@ea...> - 2013-11-22 00:34:20
|
>From: John Brown [mailto:joh...@ho...] >Sent: Thursday, November 21, 2013 2:01 AM >To: MinGW Users List >Subject: Re: [Mingw-users] Trying to understand how to use MinGW/msys to configure and make a GNU package > <Snipped> >> Well, at least I think "dlfcn.h" is supported. I saw that the >>MinGW/msys version of "dlfcn.h" exists only in the msys include >> directory, not in the MinGW include directory. Does that mean that >> "dlopen" functions are only supported for msys-based executables? > >Such POSIX features are not available to a MinGW program unless they >have been ported. In the specific case, you can try >https://code.google.com/p/dlfcn-win32/. Thank you John. I was aware of that one but was hoping it would be supported by MinGW gcc/lib code. Eli's later reply indicates that it is (or should be), so I have other digging to do about why it didn't get found. >> I >> tried exporting CFLAGS and LDFLAGS definitions containing both the >> MinGW include and msys include directories before running the >> configure script, but "dlfcn.h" was still not found. > >That was the wrong thing to do, so luckily it did not work. <*Chuckle*> Lucky me... >> I guess I am just not quite getting what GNU facilities are available >> for pure MinGW compiles. Is it only what is contained in the MinGW >> include directory? So, for instance, "stdarg.h" is not available for >> MinGW compiles, only for msys compiles, since "stdarg.h" lives only in >> msys include? > >That is correct. If the bare MinGW installation does not include a library >that you need, then you must install it under /mingw, or install it wherever >you like (except under the msys include and lib directories, of course) >and adjust your CFLAGS and LDFLAGS appropriately. If you are lucky, >the library can be built by MinGW. Otherwise, you must find a port from >GNUWin32 or wherever, or port it yourself. > >> I see in zip files pulled from ezwinports that the entire GNU >> configure process is bypassed and Eli's hand-crafted Makefile's are >> substituted instead (e.g., for gawk 4.x). Is this the only way to >> build MinGW versions of GNU projects? > >No, the standard process should work as long as the prerequisites are >in place. Thanks for all your advice and thoughtful replies. Appreciated. Peter -- |