Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit e0b85ea

Browse files
author
rhc54
committed
Merge pull request #547 from jsquyres/pr/fortran-link-libopal
fortran: link the opal-pal.la library directly
2 parents 445e6e1 + d0f2613 commit e0b85ea

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

ompi/mpi/fortran/mpif-h/Makefile.am

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# University of Stuttgart. All rights reserved.
1010
# Copyright (c) 2004-2005 The Regents of the University of California.
1111
# All rights reserved.
12-
# Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
12+
# Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
1313
# Copyright (c) 2011-2013 Inria. All rights reserved.
1414
# Copyright (c) 2011-2013 Universite Bordeaux 1
1515
# Copyright (c) 2013-2014 Los Alamos National Security, LLC. All rights
@@ -56,7 +56,14 @@ AM_CPPFLAGS = -DOMPI_PROFILE_LAYER=0 -DOMPI_COMPILING_FORTRAN_WRAPPERS=1
5656
lib_LTLIBRARIES =
5757
noinst_LTLIBRARIES =
5858
CLEANFILES =
59-
libmpi_mpifh_la_LIBADD = $(top_builddir)/ompi/libmpi.la $(OMPI_MPIEXT_MPIFH_LIBS)
59+
# Note that we invoke some OPAL functions directly in libmpi_mpifh.la,
60+
# so we need to link in the OPAL library directly (pulling it in
61+
# indirectly via libmpi.la does not work on all platforms).
62+
libmpi_mpifh_la_LIBADD = \
63+
$(top_builddir)/ompi/libmpi.la \
64+
$(OMPI_MPIEXT_MPIFH_LIBS) \
65+
$(OMPI_TOP_BUILDDIR)/opal/libopen-pal.la
66+
6067
libmpi_mpifh_la_LDFLAGS = -version-info $(libmpi_mpifh_so_version)
6168

6269
# Are we building the mpif.h bindings at all?

ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile.am

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- makefile -*-
22
#
3-
# Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
3+
# Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
44
# Copyright (c) 2015 Research Organization for Information Science
55
# and Technology (RIST). All rights reserved.
66
#
@@ -48,6 +48,13 @@ nodist_libmpi_usempi_ignore_tkr_la_SOURCES += \
4848
mpi-ignore-tkr-sizeof.f90
4949
endif
5050

51+
# Note that we invoke some OPAL functions directly in
52+
# libmpi_usempi_ignore_tkr.la, so we need to link in the OPAL library
53+
# directly (pulling it in indirectly via libmpi.la does not work on
54+
# all platforms).
55+
libmpi_usempi_ignore_tkr_la_LIBADD = \
56+
$(OMPI_MPIEXT_USEMPI_LIBS) \
57+
$(OMPI_TOP_BUILDDIR)/opal/libopen-pal.la
5158
libmpi_usempi_ignore_tkr_la_LDFLAGS = \
5259
-version-info $(libmpi_usempi_ignore_tkr_so_version) \
5360
$(OMPI_FORTRAN_EXTRA_SHARED_LIBRARY_FLAGS)

ompi/mpi/fortran/use-mpi-tkr/Makefile.am

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# University of Stuttgart. All rights reserved.
1111
# Copyright (c) 2004-2005 The Regents of the University of California.
1212
# All rights reserved.
13-
# Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
13+
# Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
1414
# Copyright (c) 2007 Los Alamos National Security, LLC. All rights
1515
# reserved.
1616
# Copyright (c) 2014-2015 Research Organization for Information Science
@@ -74,8 +74,6 @@ libmpi_usempi_la_SOURCES = \
7474
mpi_waitsome_f90.f90 \
7575
mpi_wtick_f90.f90 \
7676
mpi_wtime_f90.f90
77-
libmpi_usempi_la_LIBADD = \
78-
$(top_builddir)/ompi/mpi/fortran/mpif-h/libmpi_mpifh.la
7977

8078
# Don't distribute mpi-tkr-sizeof-*; they're generated.
8179

@@ -86,6 +84,14 @@ nodist_libmpi_usempi_la_SOURCES += \
8684
mpi-tkr-sizeof.f90
8785
endif
8886

87+
# Note that we invoke some OPAL functions directly in
88+
# libmpi_usempi.la, so we need to link in the OPAL library directly
89+
# (pulling it in indirectly via libmpi.la does not work on all
90+
# platforms).
91+
libmpi_usempi_la_LIBADD = \
92+
$(top_builddir)/ompi/mpi/fortran/mpif-h/libmpi_mpifh.la \
93+
$(OMPI_MPIEXT_USEMPI_LIBS) \
94+
$(OMPI_TOP_BUILDDIR)/opal/libopen-pal.la
8995
# Set the library version
9096
libmpi_usempi_la_LDFLAGS = \
9197
-version-info $(libmpi_usempi_tkr_so_version) \

0 commit comments

Comments
 (0)