Merge remote-tracking branch 'bard/link-boost-explicitly-where-needed' into superlu-support
This fixes the errors on Debian when linking the examples.
This commit is contained in:
commit
35c657d9a0
@ -10,6 +10,20 @@ $(top_builddir)/lib/libopmcore.la \
|
||||
${BOOST_SYSTEM_LIB} ${BOOST_FILESYSTEM_LIB} \
|
||||
${SUPERLU_LIBS} $(BLAS_LIBS) $(LIBS)
|
||||
|
||||
# Convenience definition for targets that use Boost.Filesystem directly.
|
||||
# While libopmcore depends on (and references) Boost.Filesystem (through
|
||||
# the $(BOOST_FILESYSTEM_LIB) macro) this indirect dependency is not
|
||||
# sufficient to satisfy the requirements of targets that use the indirect
|
||||
# libraries directly.
|
||||
#
|
||||
# Additional details at
|
||||
# https://fedoraproject.org/wiki/UnderstandingDSOLinkChange
|
||||
#
|
||||
LINK_BOOST_FILESYSTEM = \
|
||||
$(OPM_BOOST_LDFLAGS) \
|
||||
$(BOOST_FILESYSTEM_LIB) \
|
||||
$(BOOST_SYSTEM_LIB)
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Declare products (i.e., the example programs).
|
||||
#
|
||||
@ -31,9 +45,16 @@ wells_example
|
||||
# Please maintain sort order from "noinst_PROGRAMS".
|
||||
|
||||
refine_wells_SOURCES = refine_wells.cpp
|
||||
|
||||
sim_2p_comp_reorder_SOURCES = sim_2p_comp_reorder.cpp
|
||||
sim_2p_comp_reorder_LDADD = $(LDADD) $(LINK_BOOST_FILESYSTEM)
|
||||
|
||||
sim_2p_incomp_reorder_SOURCES = sim_2p_incomp_reorder.cpp
|
||||
sim_2p_incomp_reorder_LDADD = $(LDADD) $(LINK_BOOST_FILESYSTEM)
|
||||
|
||||
sim_wateroil_SOURCES = sim_wateroil.cpp
|
||||
sim_wateroil_LDADD = $(LDADD) $(LINK_BOOST_FILESYSTEM)
|
||||
|
||||
wells_example_SOURCES = wells_example.cpp
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
@ -45,5 +66,6 @@ noinst_PROGRAMS += spu_2p
|
||||
spu_2p_SOURCES = spu_2p.cpp
|
||||
spu_2p_LDADD = \
|
||||
$(LDADD) \
|
||||
$(LINK_BOOST_FILESYSTEM) \
|
||||
$(LAPACK_LIBS) $(BLAS_LIBS) $(LIBS)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user