Re: Creating Fat XS Modules

2003-02-08 Thread Ken Williams
On Friday, February 7, 2003, at 01:48 PM, Mark Alldritt wrote: For the archive record, that won't work, because 'use' is done at compile-time (here, the compile-time of the BEGIN block, which is Compile Man's compile-time), before the if() statement has a chance to work. Quite right - my

Re: Creating Fat XS Modules

2003-02-07 Thread Sherm Pendley
On Thursday, February 6, 2003, at 07:53 PM, Ken Williams wrote: On Thursday, February 6, 2003, at 10:14 AM, Sherm Pendley wrote: Something like this: ... stuff snipped ... For the archive record, that won't work, because 'use' is done at compile-time (here, the compile-time of the BEGIN

Re: Creating Fat XS Modules

2003-02-07 Thread Mark Alldritt
For the archive record, that won't work, because 'use' is done at compile-time (here, the compile-time of the BEGIN block, which is Compile Man's compile-time), before the if() statement has a chance to work. Quite right - my bad. Also, as Dan pointed out, there's more to it than simply

Re: Creating Fat XS Modules

2003-02-07 Thread Sherm Pendley
On Friday, February 7, 2003, at 04:48 PM, Mark Alldritt wrote: Regarding the binary compatibility issues, is anyone aware of a reference that describes which options change binary compatibility? The ones that I'm aware of are multiplicity, threading, and 64-bit support. There may be more.

Re: Creating Fat XS Modules

2003-02-06 Thread Dan Sugalski
At 9:54 AM -0800 2/6/03, Mark Alldritt wrote: Hi Folks, I have an XS Perl module that I need to distribute in binary form as part of a larger Mac OS X application. However, because I want to support Perl 5.6 and 5.8 and these two versions are not binary compatible, I'm looking for a way to

Re: Creating Fat XS Modules

2003-02-06 Thread drieux
On Thursday, Feb 6, 2003, at 09:54 US/Pacific, Mark Alldritt wrote: Hi Folks, I have an XS Perl module that I need to distribute in binary form as part of a larger Mac OS X application. However, because I want to support Perl 5.6 and 5.8 and these two versions are not binary compatible, I'm

Re: Creating Fat XS Modules

2003-02-06 Thread Ken Williams
On Thursday, February 6, 2003, at 10:14 AM, Sherm Pendley wrote: Something like this: BEGIN { if ($^V =~ /5.6/) { use lib /Library/AppName/Perl5_6; } elsif ($^V =~ /5.8/) { use lib /Library/AppName/Perl5_8; } else { die Unknown Perl version found.; } }