[Darshan-commits] [Git][darshan/darshan][master] 2 commits: fix dynamic ld flags in config and pkgconfig

Shane Snyder xgitlab at cels.anl.gov
Fri Apr 24 12:40:14 CDT 2020



Shane Snyder pushed to branch master at darshan / darshan


Commits:
beb6eeef by Shane Snyder at 2020-04-24T12:25:21-05:00
fix dynamic ld flags in config and pkgconfig

- - - - -
8dbe970a by Shane Snyder at 2020-04-24T12:40:12-05:00
Merge branch 'dev-fix-dynamic-ld-flags' into 'master'

fix dynamic ld flags in darshan-config and pkgconfig

See merge request darshan/darshan!49
- - - - -


2 changed files:

- darshan-runtime/darshan-config.in
- darshan-runtime/lib/pkgconfig/darshan-runtime.pc.in


Changes:

=====================================
darshan-runtime/darshan-config.in
=====================================
@@ -18,7 +18,7 @@ POST_LD_FLAGS="-L$DARSHAN_LIB_PATH -ldarshan -lz -lrt -lpthread"
 # - when dynamic linking there is no need for wrapping options, we simply
 #   need to get the darshan symbol definitions early enough in the link
 #   order.  We also set no-as-needed for linkers that may not identify
-DYN_LD_FLAGS="-L$DARSHAN_LIB_PATH $DARSHAN_LD_FLAGS -Wl,-rpath=$DARSHAN_LIB_PATH $DARSHAN_LD_FLAGS -Wl,-no-as-needed -ldarshan"
+DYN_LD_FLAGS="-L$DARSHAN_LIB_PATH $DARSHAN_LD_FLAGS -Wl,-rpath=$DARSHAN_LIB_PATH -Wl,-no-as-needed -ldarshan"
 
 usage="\
 Usage: darshan-config [--pre-ld-flags] [--post-ld-flags] [--dyn-ld-flags]"


=====================================
darshan-runtime/lib/pkgconfig/darshan-runtime.pc.in
=====================================
@@ -15,5 +15,5 @@ darshan_libdir= -L${darshan_prefix}/lib
 darshan_linkopts="-Wl,@${darshan_share}/ld-opts/darshan-base-ld-opts"
 
 Cflags:
-Libs: -ldarshan
+Libs: ${darshan_libdir} -Wl,-rpath=${darshan_prefix}/lib -Wl,-no-as-needed -ldarshan
 Libs.private: ${darshan_linkopts} ${darshan_libdir} -lfmpich -lmpichcxx -ldarshan



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/compare/3e25d9ad5d9f408a73400372c02cb973277a92ef...8dbe970a19839b6a6683302bcb0c45c7c3d4da6b

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/compare/3e25d9ad5d9f408a73400372c02cb973277a92ef...8dbe970a19839b6a6683302bcb0c45c7c3d4da6b
You're receiving this email because of your account on xgitlab.cels.anl.gov.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20200424/248c54ed/attachment.html>


More information about the Darshan-commits mailing list