--- Makefile (revision 544492) +++ Makefile (working copy) @@ -19,7 +19,7 @@ #DEPRECATED= Support ends three years after .0 release. Please upgrade to a more recent version of Perl #EXPIRATION_DATE= -USES= cpe tar:xz +USES= compiler cpe tar:xz # Give a hint of where libperl.so can be found. USE_LDCONFIG= ${PREFIX}/${_ARCH_LIB}/CORE @@ -179,6 +179,12 @@ CONFIGURE_ARGS+= -Accflags='-DUSE_THREAD_SAFE_LOCALE' .endif +.include + +.if ${ARCH} == powerpc && ${CHOSEN_COMPILER_TYPE} == clang +CFLAGS+= -O1 +.endif + # if this port is default due PERL5_DEFAULT # change PKGNAME to reflect this .if ${PERL_VER} == ${PERL5_DEFAULT} @@ -290,4 +296,4 @@ done ${INSTALL_DATA} ${WRKDIR}/perl-man.conf ${STAGEDIR}${PREFIX}/etc/man.d/perl${PKGNAMESUFFIX}.conf -.include +.include