aboutsummaryrefslogtreecommitdiff
path: root/textproc/libtre
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-05-13 05:35:10 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-05-13 05:35:10 +0000
commit31e2031b86e54d53021c5ef4b9f075481fa50330 (patch)
tree084576713c2eaae06363bcdc2e4d5f5887465ee3 /textproc/libtre
parentb6267d7a4b10e4fa51ae0240b39a73b9302db924 (diff)
downloadports-31e2031b86e54d53021c5ef4b9f075481fa50330.tar.gz
ports-31e2031b86e54d53021c5ef4b9f075481fa50330.zip
Notes
Diffstat (limited to 'textproc/libtre')
-rw-r--r--textproc/libtre/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/textproc/libtre/Makefile b/textproc/libtre/Makefile
index 7192faf825fa..0427d6cbe502 100644
--- a/textproc/libtre/Makefile
+++ b/textproc/libtre/Makefile
@@ -34,6 +34,18 @@ CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
+.ifdef WITH_OPTIMIZED_CFLAGS
+CFLAGS+= -Wuninitialized -ffast-math -finline-functions-fomit-frame-pointer -fexpensive-optimizations -fforce-mem -fforce-addr -O3
+.endif
+
+pre-everything::
+.ifndef(WITH_OPTIMIZED_CFLAGS)
+ @${ECHO_MSG} '===>'
+ @${ECHO_MSG} '===> You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS'
+ @${ECHO_MSG} "===> For example, 'make WITH_OPTIMIZED_CFLAGS=yes'"
+.endif
+ @${ECHO_MSG} '===>'
+
post-patch:
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure