summaryrefslogtreecommitdiff
blob: bc9cca65a40d9d8c65c6527672f937930daaf016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 98cb3f66e158d02ce39cd64a62395e3b46e28eb0 Mon Sep 17 00:00:00 2001
From: Stanislav Ochotnicky <sochotnicky@gmail.com>
Date: Thu, 22 Apr 2010 22:28:17 +0200
Subject: [PATCH] Improved CFLAGS stripping code a bit

---
 db3/configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/db3/configure b/db3/configure
index 012b423..2856f20 100755
--- a/db3/configure
+++ b/db3/configure
@@ -8,7 +8,7 @@ db_dist="${base_path}../db/dist"
 rm -f config.cache
 
 # XXX edit CFLAGS= ... out of invocation args ???
-ARGS="`echo $* | sed -e 's% [^ ]*CFLAGS=[^ ]*%%' -e 's% -[^-][^ ]*%%g' -e 's% --param=[^ ]*%%g' -e 's%--cache-file=.*$%%'`"
+ARGS="`echo $* | sed -e 's%--param[ =][^ ]*%%g' -e 's% [^ ]*CFLAGS=[^ ]*%%' -e 's% -[^-][^ ]*%%g'  -e 's%--cache-file=.*$%%'`"
 
 CC="$CC" CFLAGS="$CFLAGS" $db_dist/configure $ARGS \
 	--enable-shared --enable-static --enable-rpc \
-- 
1.6.4.4