Add non-portable fixes to temporarily allow the gpr test(s) to be
built. The issue is that these tests are trying to test specific components, and is calling the functions directly -- and therefore needs to have the component linked in. This is fine when the component is statically linked as part of libmpi, but presents a problem when the component is a DSO. GNU compilers/linkers allow us to link in the DSO as part of the test executable (and everything "just works"), but this is not portable. A better solution is going to involve: - a better unit test support library that can load a DSO on demand - using function pointers in the unit tests (rather than direct function invocation) This commit was SVN r5051.
Этот коммит содержится в:
родитель
a0fd932487
Коммит
da23029c96
@ -30,9 +30,16 @@ check_PROGRAMS = \
|
||||
TESTS = \
|
||||
$(check_PROGRAMS)
|
||||
|
||||
if OMPI_BUILD_gpr_replica_DSO
|
||||
replica = $(top_builddir)/src/mca/gpr/replica/mca_gpr_replica.la
|
||||
else
|
||||
replica = $(top_builddir)/src/mca/gpr/replica/libmca_gpr_replica.la
|
||||
endif
|
||||
|
||||
gpr_internal_fns_SOURCES = gpr_internal_fns.c
|
||||
gpr_internal_fns_LDADD = \
|
||||
$(top_builddir)/src/libmpi.la \
|
||||
$(replica) \
|
||||
$(top_builddir)/test/support/libsupport.a
|
||||
gpr_internal_fns_DEPENDENCIES = $(gpr_internal_fns_LDADD)
|
||||
|
||||
@ -51,11 +58,13 @@ gpr_overwrite_DEPENDENCIES = $(gpr_overwrite_LDADD)
|
||||
gpr_put_get_SOURCES = gpr_put_get.c
|
||||
gpr_put_get_LDADD = \
|
||||
$(top_builddir)/src/libmpi.la \
|
||||
$(replica) \
|
||||
$(top_builddir)/test/support/libsupport.a
|
||||
gpr_put_get_DEPENDENCIES = $(gpr_put_get_LDADD)
|
||||
|
||||
gpr_triggers_SOURCES = gpr_triggers.c
|
||||
gpr_triggers_LDADD = \
|
||||
$(top_builddir)/src/libmpi.la \
|
||||
$(replica) \
|
||||
$(top_builddir)/test/support/libsupport.a
|
||||
gpr_triggers_DEPENDENCIES = $(gpr_triggers_LDADD)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user