pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/bootstrap do not add preset CFLAGS, CPPFLAGS or LDFLAG...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0e2602dfb628
branches: trunk
changeset: 532410:0e2602dfb628
user: schwarz <schwarz%pkgsrc.org@localhost>
date: Sat Aug 18 11:01:28 2007 +0000
description:
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:
bootstrap/bootstrap | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r 33e996235e26 -r 0e2602dfb628 bootstrap/bootstrap
--- a/bootstrap/bootstrap Sat Aug 18 09:59:48 2007 +0000
+++ b/bootstrap/bootstrap Sat Aug 18 11:01:28 2007 +0000
@@ -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 "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 @@
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
Home |
Main Index |
Thread Index |
Old Index