65a0e041ac
When we use LIBADD for static libraries, the dependent libraries get propagated properly. For example, the dl/dlopen component will almost certainly require the -ldl library; when using LIBS, that doesn't get propagated elsewhere in the tree, but when using LIBADD, it does (e.g., when linking opal_wrapper_compiler).
24 строки
600 B
Makefile
24 строки
600 B
Makefile
#
|
|
# Copyright (c) 2004-2010 The Trustees of Indiana University.
|
|
# All rights reserved.
|
|
# Copyright (c) 2014-2015 Cisco Systems, Inc. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
sources = \
|
|
dl_dlopen.h \
|
|
dl_dlopen_component.c \
|
|
dl_dlopen_module.c
|
|
|
|
# This component will only ever be built statically -- never as a DSO.
|
|
|
|
noinst_LTLIBRARIES = libmca_dl_dlopen.la
|
|
|
|
libmca_dl_dlopen_la_SOURCES = $(sources)
|
|
libmca_dl_dlopen_la_LDFLAGS = -module -avoid-version
|
|
libmca_dl_dlopen_la_LIBADD = $(opal_dl_dlopen_LIBS)
|