FreeBSD Bugzilla – Attachment 95059 Details for
Bug 133356
[PATCH] mail/crm114: Add option to build with Profile-Guided Optimization
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
crm114-20080326_2.patch
crm114-20080326_2.patch (text/plain), 1.90 KB, created by
Mario Sergio Fujikawa Ferreira
on 2009-04-04 05:20:01 UTC
(
hide
)
Description:
crm114-20080326_2.patch
Filename:
MIME Type:
Creator:
Mario Sergio Fujikawa Ferreira
Created:
2009-04-04 05:20:01 UTC
Size:
1.90 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/pcvs/ports/mail/crm114/Makefile,v >retrieving revision 1.24 >diff -d -u -u -r1.24 Makefile >--- Makefile 13 Feb 2009 17:10:59 -0000 1.24 >+++ Makefile 4 Apr 2009 04:04:40 -0000 >@@ -27,8 +27,8 @@ > USE_GETTEXT= yes > USE_ICONV= yes > >-MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" prefix="${PREFIX}" \ >- LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \ >+MAKE_ARGS= CC="${CC}" prefix="${PREFIX}" \ >+ LIBS="${LIBS}" \ > INSTALL_PROGRAM="${INSTALL_PROGRAM}" > > CFLAGS+= -I${LOCALBASE}/include >@@ -43,11 +43,30 @@ > blacklist.mfp.example whitelist.mfp.example crm114-mode.el \ > procmailrc.recipe > >+OPTIONS= PGO "Enable Profile-Guided Optimization" off >+ >+.include <bsd.port.pre.mk> >+ >+.if defined(WITH_PGO) >+MAKE_ARGS+= CFLAGS="${CFLAGS} -fprofile-use" \ >+ LDFLAGS="${LDFLAGS} -fprofile-use" >+.else >+MAKE_ARGS+= CFLAGS="${CFLAGS}" \ >+ LDFLAGS="${LDFLAGS}" >+.endif >+ > post-patch: > @${REINPLACE_CMD} -Ee \ > 's,^((LD|C)FLAGS),#\1,;;s,^(prefix=),#\1,;;s,^(.*-install),#\1,' \ > ${WRKSRC}/Makefile > >+.if defined(WITH_PGO) >+.if target(pre-build) >+.error Makefile error since pre-build target has already been defined >+.endif >+pre-build: pgo >+.endif >+ > # Peter Jeremy recommended the use of b64decode and md5 20040302 > post-install: > @${REINPLACE_CMD} -Ee 's|^(.*/openssl base64 -d/)|#\1|' \ >@@ -78,4 +97,19 @@ > done > .endif > >-.include <bsd.port.mk> >+.if defined(WITH_PGO) >+pgo: pgo-build pgo-run pgo-clean >+ >+pgo-build: >+ @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} CFLAGS="${CFLAGS} -fprofile-generate" LDFLAGS="${LDFLAGS} -fprofile-generate" ${ALL_TARGET}) >+ >+pgo-run: >+# Check everything to generate profiling information. >+# We will ignore any errors. >+ @-(cd ${BUILD_WRKSRC}; ${MAKE} megatest) >+ >+pgo-clean: >+ @(cd ${BUILD_WRKSRC}; ${MAKE} clean) >+.endif # if defined(WITH_PGO) >+ >+.include <bsd.port.post.mk>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 133356
: 95059