Annotation of pkgsrc/math/p5-Algorithm-Cluster/patches/patch-src_Makefile.PL, revision 1.2

1.2     ! mef         1: $NetBSD: patch-src_Makefile.PL,v 1.1 2015/02/28 23:44:27 joerg Exp $
        !             2: 
        !             3: date: 2015-03-01 08:44:27 +0900;  author: joerg;  state: Exp;  commitid: c0GqNxgBuTNIHPby;
        !             4: Always build PIC. Bump revision.
1.1       joerg       5: 
                      6: --- src/Makefile.PL.orig       2015-02-28 22:52:46.000000000 +0000
                      7: +++ src/Makefile.PL
                      8: @@ -2,13 +2,6 @@ use ExtUtils::MakeMaker;
                      9:  use Config;
                     10:  use POSIX;
                     11:  
                     12: -# Check if this is a 64 bit machine
                     13: -my $CCFLAGS = '';
                     14: -my $machine = (POSIX::uname())[4];
                     15: -if ($machine =~ /64/) {
                     16: -        $CCFLAGS = '-fPIC';
                     17: -}
                     18: -
                     19:  WriteMakefile(
                     20:        NAME         => 'libcluster',
                     21:        VERSION_FROM => '../perl/Cluster.pm',
                     22: @@ -17,7 +10,7 @@ WriteMakefile(
                     23:        H            => ['cluster.h'],
                     24:        OBJECT       => 'cluster.o',
                     25:        MYEXTLIB     => 'libcluster$(LIB_EXT)',
                     26: -      CCFLAGS      => $CCFLAGS,
                     27: +      CCFLAGS      => '-fPIC',
                     28:        clean        => {'FILES' => 'libcluster$(LIBEEXT) $(OBJECT)'},
                     29:  );
                     30:  

CVSweb <webmaster@jp.NetBSD.org>