Encode Boost library location in OPM-Core's run-path.
Specifically, use the OPM_BOOST_LIBDIR variable created in commit 5c97e512 and Libtool's "-R" link-time switch to encode the library location within OPM-Core's run-path. This simplifies using the library, because the onus of satisfying the library's link-time requirements is removed from the client. A second refinement puts the additional link-requirements (i.e., "-l" and "-L" options) within the *_LIBADD primary. This moves the libraries from the middle to the end of the link statement. middle.
This commit is contained in:
parent
b7c0ba8b1a
commit
37e14f468e
@ -19,7 +19,10 @@ $(OPM_BOOST_CPPFLAGS)
|
||||
# (transitively) convey inter-library dependency information.
|
||||
|
||||
lib_libopmcore_la_LDFLAGS = \
|
||||
$(OPM_BOOST_LDFLAGS) \
|
||||
-R $(OPM_BOOST_LIBDIR) \
|
||||
$(OPM_BOOST_LDFLAGS)
|
||||
|
||||
lib_libopmcore_la_LIBADD = \
|
||||
$(BOOST_FILESYSTEM_LIB) \
|
||||
$(BOOST_SYSTEM_LIB) \
|
||||
$(BOOST_DATE_TIME_LIB) \
|
||||
|
Loading…
Reference in New Issue
Block a user