+ Perl compilation patch submitted by Torsten Spindler
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 29 Nov 2005 12:07:15 +0000 (12:07 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 29 Nov 2005 12:07:15 +0000 (12:07 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@869 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt++/swig/perl/Makefile.PL

index 464f4eb..4bc0ec6 100644 (file)
@@ -1,11 +1,16 @@
 #!/bin/env perl
 use ExtUtils::MakeMaker;
+
+my $CXX = $ENV{'CXX'} || 'g++';
+
 system( "ln -sf ../mltpp.i ." );
 system( "swig -c++ -I../../src `mlt-config --cflags` -perl5 mltpp.i" ); 
 WriteMakefile(
        'NAME'    => 'mltpp',
-       'CC'      => 'g++ `mlt-config --cflags` -I../../src',
+       'CC'      => '${CXX} `mlt-config --cflags` -I../../src',
+       'OPTIMIZE' => '-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386',
        'LIBS'    => ['-L../../src -lmlt++'],
-       'OBJECT'  => 'mltpp_wrap.o'
+       'OBJECT'  => 'mltpp_wrap.o',
+       'DESTDIR' => $ENV{'DESTDIR'},
 );