File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 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
3031lib@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
3546include orted/pmix/Makefile.am
Original file line number Diff line number Diff line change 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-
3123include $(top_srcdir ) /Makefile.ompi-rules
3224
3325man_pages = orterun.1
You can’t perform that action at this time.
0 commit comments