pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/gcc47 Change the way that ${MULTILIB_SUPPORTED} i...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e3a7c38f240f
branches: trunk
changeset: 602791:e3a7c38f240f
user: sbd <sbd%pkgsrc.org@localhost>
date: Sun Apr 22 08:14:22 2012 +0000
description:
Change the way that ${MULTILIB_SUPPORTED} is used.
Three situations need it be handled:
1) Multilib support is unknowen, i.e. there is nothing in the options.mk
file to appropriately set ${MULTILIB_SUPPORTED} (currently all platforms
except Linux/x86_64). In this situation nothing should be done.
2) Multilib _is_ supported, in this situation the 'gcc-multilib' option
should be made available and the CONFIGURE_ARGS modified accordingly.
3) Multilib _is not_ supported, in this situation CONFIGURE_ARGS need to
be modified.
diffstat:
lang/gcc47/options.mk | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diffs (42 lines):
diff -r 98016c9adf4b -r e3a7c38f240f lang/gcc47/options.mk
--- a/lang/gcc47/options.mk Sun Apr 22 08:12:49 2012 +0000
+++ b/lang/gcc47/options.mk Sun Apr 22 08:14:22 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2012/04/18 07:10:40 obache Exp $
+# $NetBSD: options.mk,v 1.3 2012/04/22 08:14:22 sbd Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.${GCC_PKGNAME}
PKG_SUPPORTED_OPTIONS= nls gcc-inplace-math gcc-c++ gcc-fortran gcc-java \
@@ -16,13 +16,16 @@
###
### Determine if multilib is avalible.
###
-MULTILIB_SUPPORTED?= Yes
-.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64) && \
- exists(/usr/include/gnu/stubs-64.h) && \
- !exists(/usr/include/gnu/stubs-32.h)
+MULTILIB_SUPPORTED?= unknowen
+.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
+. if exists(/usr/include/gnu/stubs-64.h) && \
+ !exists(/usr/include/gnu/stubs-32.h)
MULTILIB_SUPPORTED=No
+. else
+MULTILIB_SUPPORTED=Yes
+. endif
.endif
-.if empty(MULTILIB_SUPPORTED:M[Nn][Oo])
+.if !empty(MULTILIB_SUPPORTED:M[Yy][Ee][Ss])
PKG_SUPPORTED_OPTIONS+= gcc-multilib
PKG_SUGGESTED_OPTIONS+= gcc-multilib
.endif
@@ -46,7 +49,9 @@
###
### Multilib Support
###
-.if empty(PKG_OPTIONS:Mgcc-multilib)
+.if (!empty(MULTILIB_SUPPORTED:M[Yy][Ee][Ss]) && \
+ empty(PKG_OPTIONS:Mgcc-multilib) ) || \
+ !empty(MULTILIB_SUPPORTED:M[Nn][Oo])
CONFIGURE_ARGS+= --disable-multilib
.endif
Home |
Main Index |
Thread Index |
Old Index