pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/parallel/mpi-ch Disable weak symbols for gcc>3*. While...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/63268951c85b
branches:  trunk
changeset: 463909:63268951c85b
user:      wennmach <wennmach%pkgsrc.org@localhost>
date:      Tue Dec 02 20:13:38 2003 +0000

description:
Disable weak symbols for gcc>3*. While weak symbols do work on
NetBSD-current, the way mpi-ch test for them and implements them
(using the #pragma weak directive) is currently broken.

Fixes PR pkg/23267 by Kouichirou Hiratsuka.

diffstat:

 parallel/mpi-ch/Makefile |  22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r 04b73b4d725b -r 63268951c85b parallel/mpi-ch/Makefile
--- a/parallel/mpi-ch/Makefile  Tue Dec 02 18:03:25 2003 +0000
+++ b/parallel/mpi-ch/Makefile  Tue Dec 02 20:13:38 2003 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.23 2003/11/27 17:02:25 wennmach Exp $
+# $NetBSD: Makefile,v 1.24 2003/12/02 20:13:38 wennmach Exp $
 
 DISTNAME=              mpich-1.2.5-1a
 PKGNAME=               mpich-1.2.5.1.1
-PKGREVISION=           2
+PKGREVISION=           3
 WRKSRC=                        ${WRKDIR}/${DISTNAME:C/-1a//}
 CATEGORIES=            parallel
 MASTER_SITES=          ftp://ftp.mcs.anl.gov/pub/mpi/
@@ -25,16 +25,24 @@
 
 MPI_RSH?=              ssh
 
-CONFIGURE_ARGS=                -prefix=${PREFIX} --with-arch=netbsd --with-comm=ch_p4
+.include "../../mk/bsd.prefs.mk"
+
+CONFIGURE_ARGS=                -prefix=${PREFIX}
 CONFIGURE_ARGS+=       -docdir=${PREFIX}/share/doc/mpi-ch
 CONFIGURE_ARGS+=       -htmldir=${PREFIX}/share/doc/html/mpi-ch
-CONFIGURE_ARGS+=       --with-mpe -opt=-O --disable-devdebug
-CONFIGURE_ARGS+=       --disable-f90 --disable-f90modules
+CONFIGURE_ARGS+=       -opt=-O
+CONFIGURE_ARGS+=       --with-arch=netbsd
+CONFIGURE_ARGS+=       --with-comm=ch_p4
+CONFIGURE_ARGS+=       --with-mpe
+CONFIGURE_ARGS+=       --disable-devdebug
+CONFIGURE_ARGS+=       --disable-f90
+CONFIGURE_ARGS+=       --disable-f90modules
+.if !empty(CC_VERSION:Mgcc-3*)
+CONFIGURE_ARGS+=       --disable-weak-symbols
+.endif
 
 MAKE_ENV+=             RSHCOMMAND="${MPI_RSH}"
 
-.include "../../mk/bsd.prefs.mk"
-
 PLIST_SRC+=            ${PKGDIR}/PLIST
 
 .if ${MPI_RSH} == "rsh"



Home | Main Index | Thread Index | Old Index