Skip to content

Commit ae1d318

Browse files
authored
Merge pull request #4891 from jjhursey/fix/mpir-symbol-vis
Fix MPIR_proctable structure visibility
2 parents 50d07e9 + ccb4f43 commit ae1d318

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

orte/orted/Makefile.am

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# All rights reserved.
1313
# Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
1414
# Copyright (c) 2015 Intel, Inc. All rights reserved.
15+
# Copyright (c) 2018 IBM Corporation. All rights reserved.
1516
# $COPYRIGHT$
1617
#
1718
# Additional copyrights may follow
@@ -29,7 +30,17 @@ headers += \
2930

3031
lib@ORTE_LIB_PREFIX@open_rte_la_SOURCES += \
3132
orted/orted_main.c \
32-
orted/orted_comm.c \
33-
orted/orted_submit.c
33+
orted/orted_comm.c
34+
35+
# The MPIR portion of the library must be built with -g, even if
36+
# the rest of the library has other optimization flags.
37+
# Use an intermediate library to isolate the debug object.
38+
noinst_LTLIBRARIES += liborted_mpir.la
39+
liborted_mpir_la_SOURCES = \
40+
orted/orted_submit.c
41+
liborted_mpir_la_CFLAGS = $(CFLAGS_WITHOUT_OPTFLAGS) $(DEBUGGER_CFLAGS)
42+
43+
lib@ORTE_LIB_PREFIX@open_rte_la_LIBADD += liborted_mpir.la
44+
3445

3546
include orted/pmix/Makefile.am

orte/tools/orterun/Makefile.am

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,14 @@
1212
# Copyright (c) 2008-2014 Cisco Systems, Inc. All rights reserved.
1313
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
1414
# Copyright (c) 2015 Intel, Inc. All rights reserved.
15+
# Copyright (c) 2018 IBM Corporation. All rights reserved.
1516
# $COPYRIGHT$
1617
#
1718
# Additional copyrights may follow
1819
#
1920
# $HEADER$
2021
#
2122

22-
# This is not quite in the Automake spirit, but we have to do it.
23-
# Since the totalview portion of the library must be built with -g, we
24-
# must eliminate the CFLAGS that are passed in here by default (which
25-
# may already have debugging and/or optimization flags). We use
26-
# post-processed forms of the CFLAGS in the library targets down
27-
# below.
28-
29-
CFLAGS = $(CFLAGS_WITHOUT_OPTFLAGS) $(DEBUGGER_CFLAGS)
30-
3123
include $(top_srcdir)/Makefile.ompi-rules
3224

3325
man_pages = orterun.1

0 commit comments

Comments
 (0)