summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorschwarz <schwarz@pkgsrc.org>2007-08-18 11:01:28 +0000
committerschwarz <schwarz@pkgsrc.org>2007-08-18 11:01:28 +0000
commitc60d0d1e051b0ef3b61d5768fa2c054323d2f0f6 (patch)
treef188c8a0b51ae4c5bf1b8c2127a1249edd1cdeca /bootstrap
parent1114bf4f1786e15c95d4448976af1c3fcbf39830 (diff)
downloadpkgsrc-c60d0d1e051b0ef3b61d5768fa2c054323d2f0f6.tar.gz
do not add preset CFLAGS, CPPFLAGS or LDFLAGS to BOOTSTRAP_MKCONF since on
bootstrap time these variables are already set as shell variables. As a result, they were doubled for bootstrap compiling. An alternative solution to that issue would be to explicitly empty those shell variables once they have been added to BOOTSTRAP_MKCONF, but that approach would use more lines of shell code :-)
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap7
1 files changed, 2 insertions, 5 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 520b6d29c92..72f34813ed7 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.107 2007/08/14 00:26:58 rillig Exp $
+# $NetBSD: bootstrap,v 1.108 2007/08/18 11:01:28 schwarz Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -740,8 +740,8 @@ echo "PKG_TOOLS_BIN= $prefix/sbin" >> ${TARGET_MKCONF}
echo "PKGMANDIR= $pkgmandir" >> ${TARGET_MKCONF}
echo "" >> ${TARGET_MKCONF}
-cp ${TARGET_MKCONF} $wrkdir/mk.conf
BOOTSTRAP_MKCONF=${wrkdir}/mk.conf
+cp ${TARGET_MKCONF} ${BOOTSTRAP_MKCONF}
# sbin is used by pkg_install, share/mk by bootstrap-mk-files
mkdir_p $wrkdir/sbin $wrkdir/share/mk
@@ -888,17 +888,14 @@ if test -n "$XARGS"; then
fi
if test -n "$CFLAGS"; then
echo "CFLAGS+= $CFLAGS" >> ${TARGET_MKCONF}
- echo "CFLAGS+= $CFLAGS" >> ${BOOTSTRAP_MKCONF}
echo "DBG= # prevent DBG from adding default optimizer flags" >> ${TARGET_MKCONF}
echo "DBG= # prevent DBG from adding default optimizer flags" >> ${BOOTSTRAP_MKCONF}
fi
if test -n "$CPPFLAGS"; then
echo "CPPFLAGS+= $CPPFLAGS" >> ${TARGET_MKCONF}
- echo "CPPFLAGS+= $CPPFLAGS" >> ${BOOTSTRAP_MKCONF}
fi
if test -n "$LDFLAGS"; then
echo "LDFLAGS+= $LDFLAGS" >> ${TARGET_MKCONF}
- echo "LDFLAGS+= $LDFLAGS" >> ${BOOTSTRAP_MKCONF}
fi
# opsys specific fiddling