Build the DynaLoader with -fPIC to fix some build problems on amd64.

Submitted by:	tobez
Approved by:	portmgr (implicit)
This commit is contained in:
Joe Marcus Clarke 2003-12-03 06:14:42 +00:00
parent 3662b79202
commit c4816a48cc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94849
4 changed files with 24 additions and 2 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= perl
PORTVERSION= ${PERL_VER}
PORTREVISION= 14
PORTREVISION= 15
CATEGORIES= lang devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
${MASTER_SITE_LOCAL:S/$/:local/}

View file

@ -0,0 +1,11 @@
--- ext/DynaLoader/Makefile.PL.orig Mon Nov 24 21:47:20 2003
+++ ext/DynaLoader/Makefile.PL Mon Nov 24 21:56:15 2003
@@ -1,5 +1,8 @@
use ExtUtils::MakeMaker;
+my $ccflags = $Config::Config{ccflags};
+tied(%Config::Config)->{ccflags} = "$ccflags -DPIC -fPIC";
+
WriteMakefile(
NAME => 'DynaLoader',
LINKTYPE => 'static',

View file

@ -7,7 +7,7 @@
PORTNAME= perl
PORTVERSION= ${PERL_VER}
PORTREVISION= 14
PORTREVISION= 15
CATEGORIES= lang devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
${MASTER_SITE_LOCAL:S/$/:local/}

View file

@ -0,0 +1,11 @@
--- ext/DynaLoader/Makefile.PL.orig Mon Nov 24 21:47:20 2003
+++ ext/DynaLoader/Makefile.PL Mon Nov 24 21:56:15 2003
@@ -1,5 +1,8 @@
use ExtUtils::MakeMaker;
+my $ccflags = $Config::Config{ccflags};
+tied(%Config::Config)->{ccflags} = "$ccflags -DPIC -fPIC";
+
WriteMakefile(
NAME => 'DynaLoader',
LINKTYPE => 'static',