e81c070ef0
Embedding libltdl without the use of Libtool bootstrapping has proven... difficult. Instead, create a new simple "dl" framework. It only provides 4 functions: - open a DSO (very similar to lt_dlopenadvise()) - lookup a symbol in a previously-opened DSO (very similar to lt_dlsym()) - close a previously-opened DSO (very similar to lt_dlclose()) - iterate over all files in a directory (very similar to ld_dlforeachfile()) There will be follow-on commits with a simple dlopen-based component (nowhere near as complete/functional as libltdl, but good enough for Linux and OS X), and a libltdl-based component for all other platforms. The intent is that the dlopen-based component can be built by default in almost all cases. But if libltdl is available, that component will be built. End result: we still get DSO-based functionality by default in (almost?) all cases. Without embedding libltdl. Which is what we want.
37 строки
979 B
Makefile
37 строки
979 B
Makefile
#
|
|
# Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
|
|
# University Research and Technology
|
|
# Corporation. All rights reserved.
|
|
# Copyright (c) 2010-2015 Cisco Systems, Inc. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
# main library setup
|
|
noinst_LTLIBRARIES = libmca_dl.la
|
|
libmca_dl_la_SOURCES =
|
|
|
|
# local files
|
|
headers = dl.h
|
|
libmca_dl_la_SOURCES += $(headers)
|
|
|
|
# Ensure that the man pages are rebuilt if the opal_config.h file
|
|
# changes; a "good enough" way to know if configure was run again (and
|
|
# therefore the release date or version may have changed)
|
|
$(nodist_man_MANS): $(top_builddir)/opal/include/opal_config.h
|
|
|
|
# Conditionally install the header files
|
|
if WANT_INSTALL_HEADERS
|
|
opaldir = $(opalincludedir)/$(subdir)
|
|
nobase_opal_HEADERS = $(headers)
|
|
endif
|
|
|
|
include base/Makefile.am
|
|
|
|
distclean-local:
|
|
rm -f base/static-components.h
|
|
rm -f $(nodist_man_MANS)
|