aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-03-04 21:39:19 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-03-04 21:39:19 +0000
commit0dc2945ae90eec9cf192f13ed68ecdc1b0185de6 (patch)
tree09cde55c3ee1827da5092e65a546e72aa62ba4b5
parentb0d6f743a087883f7a3cce5b5e46016bfb0db7e2 (diff)
downloadports-0dc2945ae90eec9cf192f13ed68ecdc1b0185de6.tar.gz
ports-0dc2945ae90eec9cf192f13ed68ecdc1b0185de6.zip
Notes
-rw-r--r--textproc/openjade/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/textproc/openjade/Makefile b/textproc/openjade/Makefile
index b2afdadffb94..46be4665ae22 100644
--- a/textproc/openjade/Makefile
+++ b/textproc/openjade/Makefile
@@ -34,11 +34,7 @@ post-install:
# 'march=-mpentium -Os' produces core dumps with certain input files
# Therefore, we'd better remove all machine optimizations and any -O
# other than -O{0,1,}. Idea taken from palm/prc-tools-gcc.
-# The following sed does not reproduce the awk result. Odd.
-# ${SED} -e 's/-m[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?//g' -e 's/-O[s2-9]+//g'
-CFLAGS!= ${ECHO} "${CFLAGS}" | ${AWK} 'BEGIN \
- { RS="-m[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?|-O[s2-9]+" ; \
- ORS="" } ; \
- { if (RT == "") { print $0 } else print }'
+CFLAGS!= ${ECHO} "${CFLAGS}" | ${SED} -E -e 's/-m[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?//g' \
+ -e 's/-O[s2-9]+//g'
.include <bsd.port.post.mk>