Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
ca5cff44
Commit
ca5cff44
authored
Dec 15, 2021
by
Sergey Kosukhin
Browse files
Better handling of librt (fixup
a6940e63
).
parent
e01be51f
Pipeline
#13267
failed with stage
in 0 seconds
Changes
4
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
ca5cff44
...
...
@@ -261,13 +261,13 @@ AM_CONDITIONAL([USE_PPM_CORE],[test $enable_ppm = yes])
AM_CONDITIONAL([HAVE_PARALLEL_NC4],[test $HAVE_PARALLEL_NC4 -gt 0])
AC_SUBST([USE_MPI])
AC_SUBST([ENABLE_MPI],[`test x"$enable_mpi" = xyes && echo true || echo false`])
AC_SUBST([LIBRT])
AC_SUBST([LIBRT]
, ['']
)
AM_COND_IF([USE_MPI],
[
LIBRT=
LIBS_save=$LIBS
AC_SEARCH_LIBS([aio_suspend], [rt],
[test "$ac_res" = "none required" || LIBRT=$ac_res])
LIBS=$LIBS_save])
[
AC_CHECK_DECL([_SX], [],
[
LIBS_save=$LIBS
AC_SEARCH_LIBS([aio_suspend], [rt],
[test "$ac_res" = "none required" || LIBRT=$ac_res])
LIBS=$LIBS_save])
])
# ----------------------------------------------------------------------
# Create the Fortran Interface via iso_c_binding module (Fortran 2003 Standard)
#
...
...
examples/pio/Makefile.am
View file @
ca5cff44
...
...
@@ -16,8 +16,8 @@ endif
collectData_SOURCES
=
collectData.c
if
USE_MPI
LDADD
=
$(top_builddir)
/src/libcdipio.la
$(LIBRT)
$(MPI_C_LIB)
collectData2003_LDADD
=
$(top_builddir)
/src/libcdipio.la
$(LIBRT)
$(MPI_FC_LIB)
LDADD
=
$(top_builddir)
/src/libcdipio.la
$(MPI_C_LIB)
collectData2003_LDADD
=
$(top_builddir)
/src/libcdipio.la
$(MPI_FC_LIB)
else
LDADD
=
$(top_builddir)
/src/libcdi.la
collectData2003_LDADD
=
$(top_builddir)
/src/libcdi.la
...
...
src/Makefile.am
View file @
ca5cff44
...
...
@@ -255,7 +255,7 @@ libcdipio_la_SOURCES += $(libcdipio_la_HAVE_PARALLEL_NC4_extra_sources)
endif
endif
libcdipio_la_LIBADD
=
libcdi.la
$(PPM_CORE_LIBS)
$(YAXT_LIBS)
$(MPI_C_LIB)
libcdipio_la_LIBADD
=
libcdi.la
$(LIBRT)
$(PPM_CORE_LIBS)
$(YAXT_LIBS)
$(MPI_C_LIB)
#
#cdilib.c:
...
...
tests/Makefile.am
View file @
ca5cff44
...
...
@@ -47,8 +47,8 @@ test_byteswap_SOURCES = test_byteswap.c
#
AM_CFLAGS
=
$(PPM_CORE_CFLAGS)
$(YAXT_CFLAGS)
$(MPI_C_INCLUDE)
if
USE_MPI
pio_write_LDADD
=
../src/libcdipio.la
$(LIBRT)
$(MPI_C_LIB)
pio_write_deco2d_LDADD
=
../src/libcdipio.la
$(LIBRT)
$(MPI_C_LIB)
pio_write_LDADD
=
../src/libcdipio.la
$(MPI_C_LIB)
pio_write_deco2d_LDADD
=
../src/libcdipio.la
$(MPI_C_LIB)
TESTS
+=
test_resource_copy_mpi_run
check_PROGRAMS
+=
test_resource_copy_mpi
test_resource_copy_mpi_LDADD
=
../src/libcdipio.la
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment