summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarz <schwarz>2006-09-02 11:14:48 +0000
committerschwarz <schwarz>2006-09-02 11:14:48 +0000
commitf365cfb09c034c79da54f9fb6bfcf939cf7928ff (patch)
tree38449c6ec2e97c92fb192fa7e0cff731fea35d9d
parenta59e6ffb3efa6ef788c432c614c7e1967bb66e7e (diff)
downloadpkgsrc-f365cfb09c034c79da54f9fb6bfcf939cf7928ff.tar.gz
make sure that no default optimizer flags are set via DBG if CFLAGS is
specified
-rwxr-xr-xbootstrap/bootstrap4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index ba4f2a53ac1..c9738a027fb 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.81 2006/08/26 15:42:27 schwarz Exp $
+# $NetBSD: bootstrap,v 1.82 2006/09/02 11:14:48 schwarz Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -853,7 +853,7 @@ test -z "$MKDIR" || echo "TOOLS_PLATFORM.mkdir?= $MKDIR" >> ${MKCONF_EXAMPLE}
test -z "$TEST" || echo "TOOLS_PLATFORM.test?= $TEST" >> ${MKCONF_EXAMPLE}
test -z "$TOUCH" || echo "TOOLS_PLATFORM.touch?= $TOUCH" >> ${MKCONF_EXAMPLE}
test -z "$XARGS" || echo "TOOLS_PLATFORM.xargs?= $XARGS" >> ${MKCONF_EXAMPLE}
-test -z "$CFLAGS" || echo "CFLAGS+= $CFLAGS" >> ${MKCONF_EXAMPLE}
+test -z "$CFLAGS" || ( echo "CFLAGS+= $CFLAGS" >> ${MKCONF_EXAMPLE}; echo "DBG=" >> ${MKCONF_EXAMPLE} ) # prevent DBG from adding default optimizer flags
test -z "$CPPFLAGS" || echo "CPPFLAGS+= $CPPFLAGS" >> ${MKCONF_EXAMPLE}
test -z "$LDFLAGS" || echo "LDFLAGS+= $LDFLAGS" >> ${MKCONF_EXAMPLE}