From b4889d7cdd41651ba22c2ee73ff5b60028406ec4 Mon Sep 17 00:00:00 2001 From: Anders Nordby Date: Sat, 20 Apr 2002 20:19:47 +0000 Subject: [PATCH] Make port set -O2 in CFLAGS. Necessary for -z (compress) option to work properly. PR: 36998 Submitted by: maintainer --- net/rsync/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/rsync/Makefile b/net/rsync/Makefile index b373b1feb482..2802acb92327 100644 --- a/net/rsync/Makefile +++ b/net/rsync/Makefile @@ -8,7 +8,7 @@ PORTNAME= rsync PORTVERSION= 2.5.5 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= net ipv6 MASTER_SITES= ftp://samba.anu.edu.au/pub/rsync/ \ ftp://sunsite.auc.dk/pub/unix/rsync/ \ @@ -19,6 +19,11 @@ MAINTAINER= obraun@informatik.unibw-muenchen.de GNU_CONFIGURE= yes +OPTIMIZATION!= ${ECHO} "${CFLAGS}" | grep '\-O[2-6]' || true +.if empty(OPTIMIZATION) +CFLAGS+= -O2 +.endif + .include .if ${OSVERSION} >= 400016