-
Notifications
You must be signed in to change notification settings - Fork 68
Fix building system: correct libltdl check for advise capability. #34
Conversation
Artem -- I'm struggling to remember why the initial Can you check to see exactly which FWIW: the libltdl.h file should be in the source tree (vs. the build tree), so |
That is a good point, Jeff. Looking closely to the configuration system I can see that we deal with following conftest.c template: CPPFLAGS="-I$srcdir/ -I$srcdir/opal/libltdl/"
# Must specifically mention $srcdir here for VPATH builds
# (this file is in the src tree).
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <$srcdir/opal/libltdl/ltdl.h>
_ACEOF That will turn into //... < lots of defines > ....
#define OMPI_MPI_CONTRIBS "libompitrace, vt"
#define OPAL_C_HAVE_VISIBILITY 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
/* end confdefs.h. */
#include < ./opal/libltdl/ltdl.h > For local config and to ...
#include < /some/vpath/path/opal/libltdl/ltdl.h > for VPATH. So we don't actually need "-I." or "-I$srcdir" at all because conftest.c always contains correct path relative to the current configuration directory. |
I guess I need to go back to ompi and apply this patch there? Additionall pull request? |
Wait, let's figure this out before doing anything... If we don't need the |
Sure, |
I know you didn't add I was responding to your prior comment:
So if we need neither |
Because in conftest.c we include #include <libltdl/lt_system.h>
#include <libltdl/lt_error.h> They are located in P.S. Check the latest patch to clarify my current version. |
Ok, got it -- we do need the Yes, please push the final change back to master (i.e., delete the |
Done: open-mpi/ompi@ce7102c |
Fix building system: correct libltdl check for advise capability.
ompi commit: open-mpi/ompi@3ff16e7
ompi pull request: open-mpi/ompi#240