1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

Instead of hardcoding the flags passed to OPTIMIZE, replace it

with the value of CFLAGS
This commit is contained in:
Steven Kreuzer 2014-04-11 15:14:27 +00:00
parent 2fde2038d8
commit b15ebea930
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350979
2 changed files with 3 additions and 10 deletions

View File

@ -15,4 +15,7 @@ LICENSE= GPLv2
USES= perl5
USE_PERL5= configure
post-patch:
${REINPLACE_CMD} -i '' -e '/OPTIMIZE/s/=>.*/=> "${CFLAGS}",/g' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>

View File

@ -1,10 +0,0 @@
--- Makefile.PL.orig 2014-04-04 14:56:24.000000000 +0000
+++ Makefile.PL 2014-04-04 14:56:41.000000000 +0000
@@ -1,6 +1,6 @@
use ExtUtils::MakeMaker;
-my $opt = '-O3 -funroll-loops -fomit-frame-pointer -fschedule-insns2 -Os -fno-strength-reduce -Wall -pipe';
+my $opt = '-O3 -funroll-loops -fomit-frame-pointer -Os -fno-strength-reduce -Wall -pipe';
WriteMakefile(
'NAME' => 'Crypt::Rabbit',