pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler override the GNU configure test for __attr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4e4b8fc72b2d
branches: trunk
changeset: 489089:4e4b8fc72b2d
user: grant <grant%pkgsrc.org@localhost>
date: Wed Feb 16 10:48:40 2005 +0000
description:
override the GNU configure test for __attribute__. the test commonly
uses a nested function, which icc does not support.
diffstat:
mk/compiler/icc.mk | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 8c12bf0c4959 -r 4e4b8fc72b2d mk/compiler/icc.mk
--- a/mk/compiler/icc.mk Wed Feb 16 10:41:50 2005 +0000
+++ b/mk/compiler/icc.mk Wed Feb 16 10:48:40 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: icc.mk,v 1.1 2005/02/15 07:43:43 grant Exp $
+# $NetBSD: icc.mk,v 1.2 2005/02/16 10:48:40 grant Exp $
.if !defined(COMPILER_ICC_MK)
COMPILER_ICC_MK= defined
@@ -58,6 +58,15 @@
PREPEND_PATH+= ${_ICC_DIR}/bin
.endif
+# icc supports __attribute__, but the GNU configure test uses a nested
+# function, which icc does not support. #undef'ing __attribute__ has the
+# unfortunate side-effect of breaking many of the Linux header files, which
+# cannot be compiled properly without __attribute__. The test must be
+# overridden so that __attribute__ is assumed supported by the compiler.
+.if defined(GNU_CONFIGURE)
+CONFIGURE_ENV+= ac_cv___attribute__=yes
+.endif
+
# Create compiler driver scripts in ${WRKDIR}.
.for _var_ in ${_ICC_VARS}
. if !target(${_ICC_${_var_}})
Home |
Main Index |
Thread Index |
Old Index