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
commit7b0b779d9fdbc81a695b3ebb774b3a6bc1345501 (patch)
treef188c8a0b51ae4c5bf1b8c2127a1249edd1cdeca /bootstrap
parentef975405dcd90a53ff74f1bb0d21f9ebebde5f07 (diff)
downloadpkgsrc-7b0b779d9fdbc81a695b3ebb774b3a6bc1345501.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