On 9/5/2011 10:03 AM, Sisyphus wrote:

----- Original Message ----- From: "chm" <[email protected]>
To: <[email protected]>
Cc: "Sisyphus" <[email protected]>
Sent: Saturday, September 03, 2011 2:14 AM
Subject: win32 PDL build idea


win32/cygwin/gcc users-

Now that cygwin no-longer support the -mno-cygwin
option for gcc and one must use a mingw-gcc in a
cross-compiler mode, I've been meaning to update
my notes for how to build a non-cygwin dependent
binary from cygwin again.

You can still build with -mno-cygwin if you install gcc-3. But you're
essentially right; gcc-4 doesn't have the -mno-cygwin option (and you
really don't want to revert to using gcc-3).

Using gcc-3 would be counterproductive since it seems
most everyone has moved on to gcc-4 now that things
seem to be stable there.

I don't know how you now build for native win32 under Cygwin. I would think
that, once you get the right compiler and the right mantra, it can be done
fairly simply and reliably.

I don't since I need to get the cross-compiler/mingw working.

It just occurred to me that the same thing might
make it possible to build a win32 PDL (32bit- and
64bit-).

Lots of hoops through which to jump if you're thinking of using a
*cygwin* perl to build a win32 PDL.
Perhaps not so many hoops if you're thinking of using a *win32* perl
with cygwin's mingw compiler.

cygwin perl is a non-starter since it uses the cygwin DLL.
I was thinking of using the mingw and cygwin the same
way you use all the MSYS and MinGW packages.  The hope
was the install and config might be a bit simpler---once
it was all sorted out.

If that were the case, it might simplify
collecting the external dependencies and building
them. We could use the cygwin (unix/linix like)
tool chain to get the needed sources or binaries
with the result being a stand-alone PDL for windows.

I don't think the cygwin binaries for these external dependencies would
be of much use - but you could use the cygwin tool chain to get the
sources .... assuming, of course, that the sources it grabs are suitable
for windows (and haven't been patched so as to be usable only under
Cygwin).

I don't immediately see a lot to be gained here, but I could be missing
something of course.

The thought was to replace a bunch of MinGW and MSYS hand
installation by installing cygwin and some modified build
scripts.  Until we can get the Alien::XXX or some such to
handle win32 dependencies, there is going to be a lot
of scraping to get win32 PDL built (e.g., I *still* have
not gotten things set up to do it myself.  Thanks again
for standing up the PPM install for the developers
releases!)

--Chris

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to