On Sat, 7 Sep 2002, Markus Laire wrote: > On 6 Sep 2002 at 11:15, Andy Dougherty wrote: > > > I've been told that my patch #16937 (which changes ld_shared from the > > hard-wired wrong value of -shared to $Config{lddlflags}, which is the > > variable designed in perl5 for this precise use) breaks cygwin. But in > > the current state of affairs, without this patch, every other build that > > doesn't use GNU binutils is broken. > > > > Could a cygwin user please try applying my patch? I'd be happy to work > > with you to resolve any problems. > > I just tested that on cygwin. > > In Makefile there is line 'LD_SHARED = -s -L/usr/local/lib' > > Full output for perl6-make: > gcc -s -L/usr/local/lib -s -L/usr/local/lib -o blib/lib/libparrot.so [all the .o files]
> collect2: ld returned 1 exit status Ok. Now comes the fun part. What program should be used on cygwin to create a shared library? Make sure that's correctly set in config/init/hints/cygwin.pl. From my reading of the perl5 README.cygwin, I would have thought that 'ld2' would be the correct answer. However, if 'gcc' is indeed the correct answer, then you'll have to add lddlfags => '-shared' to config/init/hints/cygwin.pl. -- Andy Dougherty [EMAIL PROTECTED]