I have an XS module that I now need to use a the Sun Studio 8 compiler. How do I make xs use it?
My Makefile.PL looks like...Building the Makefile...use ExtUtils::MakeMaker; $acelib = '/opt/Ace750cRev1/postware/acelib'; WriteMakefile( 'NAME' => 'ACE', 'VERSION_FROM' => 'ACE.pm', 'LIBS' => ["-L$acelib -lace"], 'DEFINE' => '-DSolaris64', 'INC' => "-I$acelib", );
Making the extention...erickn@isfe:/home/erickn/ACE> perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for ACE
As you can see it still uses gcc. However I want it to use the new Studio 8 compiler.erickn@isfe:/home/erickn/ACE> make cp ace_constants.pl blib/lib/ace_constants.pl cp ACE.pm blib/lib/ACE.pm /home/utils/perl/bin/perl /home/utils/perl/lib/perl5/5.8.0/ExtUtils/xs +ubpp -typemap /home/utils/perl/lib/perl5/5.8.0/ExtUtils/typemap -typ +emap typemap ACE.xs > ACE.xsc && mv ACE.xsc ACE.c gcc -c -I/opt/Ace750cRev1/postware/acelib -I/home/utils/perl/include + -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"3.00\" + -DXS_VERSION=\"3.00\" -fPIC "-I/home/utils/perl/lib/perl5/5.8.0/sun4 +-solaris/CORE" -DSolaris64 ACE.c Running Mkbootstrap for ACE () chmod 644 ACE.bs rm -f blib/arch/auto/ACE/ACE.so LD_RUN_PATH="/opt/Ace750cRev1/postware/acelib" gcc -G -L/home/utils/p +erl/lib ACE.o -o blib/arch/auto/ACE/ACE.so -L/opt/Ace750cRev1/post +ware/acelib -lace chmod 755 blib/arch/auto/ACE/ACE.so cp ACE.bs blib/arch/auto/ACE/ACE.bs chmod 644 blib/arch/auto/ACE/ACE.bs Manifying blib/man3/ACE.3
And my $PATH is...erickn@isfe:/home/erickn/ACE> type gcc gcc is /usr/local/bin/gcc erickn@isfe:/home/erickn/ACE> type cc cc is a tracked alias for /usr/local/studio8/SUNWspro/bin/cc
So, my questions are...erickn@isfe:/home/erickn/ACE> echo $PATH /usr/local/studio8/SUNWspro/bin:/home/erickn/bin:/home/utils/perl/bin: +/home/utils/perl/scripts:/v0/oracle/bin:/usr/bin:/usr/dt/bin:/usr/ope +nwin/bin:/usr/ccs/bin:/usr/sbin:/usr/ucb:/usr/bin/nsr:/usr/sbin/nsr:/ +usr/local/bin:/usr/local/scripts:/usr/local/mistools:/usr/lib:/opt/op +enssh/bin:/opt/SUNWppro/bin:/usr/annex/bin/SUN/:/opt/vsifax/bin:/usr/ +local/SUNWexplo/bin:/usr/opt/SUNWmd/sbin:/opt/imagemagick/bin:.:/usr/ +local/oracle:/home/oramwh/scripts/forms_drivers:/prod/share/bin:/prod +/dbadmin/util/bin
In reply to How to make an XS module with a different C compiler? by mifflin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |