pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk GNU configure scripts generated by newer autoconf s...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9266a6f7eb1e
branches: trunk
changeset: 468465:9266a6f7eb1e
user: jlam <jlam%pkgsrc.org@localhost>
date: Sat Feb 14 02:28:19 2004 +0000
description:
GNU configure scripts generated by newer autoconf sometimes try to
save the value of LDFLAGS, CPPFLAGS, etc. in the config.cache file.
However, they don't store the value correctly if it contains leading
spaces. This leads to sub-configure scripts that examine to cache to
error out saying that the build environment changed. Use a make
variable trick to strip off all of the leading spaces on these variables
when passing them via CONFIGURE_ENV.
diffstat:
mk/bsd.pkg.mk | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r fcb6813659e5 -r 9266a6f7eb1e mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Sat Feb 14 01:09:42 2004 +0000
+++ b/mk/bsd.pkg.mk Sat Feb 14 02:28:19 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1397 2004/02/14 00:40:55 grant Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1398 2004/02/14 02:28:19 jlam Exp $
#
# This file is in the public domain.
#
@@ -358,7 +358,7 @@
FC= ${PKG_FC}
F77= ${PKG_FC}
CONFIGURE_ENV+= F77="${F77}"
-CONFIGURE_ENV+= FFLAGS="${FFLAGS}"
+CONFIGURE_ENV+= FFLAGS="${FFLAGS:M*}"
MAKE_ENV+= F77="${F77}"
MAKE_ENV+= FC="${FC}"
.endif
@@ -457,7 +457,7 @@
MAKE_ENV+= NO_WHOLE_ARCHIVE_FLAG="${NO_WHOLE_ARCHIVE_FLAG}"
MAKE_ENV+= LINK_ALL_LIBGCC_HACK="${LINK_ALL_LIBGCC_HACK}"
-CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" M4="${M4}" YACC="${YACC}"
+CONFIGURE_ENV+= LDFLAGS="${LDFLAGS:M*}" M4="${M4}" YACC="${YACC}"
CONFIGURE_ENV+= RPATH_FLAG="${RPATH_FLAG}"
MAKE_FLAGS?=
@@ -2401,8 +2401,8 @@
. if defined(HAS_CONFIGURE)
. for DIR in ${CONFIGURE_DIRS}
${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}cd ${DIR} && ${SETENV} \
- AWK="${AWK}" CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \
- CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" FC="${FC}" F77="${FC}" FFLAGS="${FFLAGS}" \
+ AWK="${AWK}" CC="${CC}" CFLAGS="${CFLAGS:M*}" CPPFLAGS="${CPPFLAGS:M*}" \
+ CXX="${CXX}" CXXFLAGS="${CXXFLAGS:M*}" FC="${FC}" F77="${FC}" FFLAGS="${FFLAGS:M*}" \
INSTALL="`${TYPE} ${INSTALL} | ${AWK} '{ print $$NF }'` -c -o ${BINOWN} -g ${BINGRP}" \
ac_given_INSTALL="`${TYPE} ${INSTALL} | ${AWK} '{ print $$NF }'` -c -o ${BINOWN} -g ${BINGRP}" \
INSTALL_DATA="${INSTALL_DATA}" \
Home |
Main Index |
Thread Index |
Old Index