aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-03-18 14:08:17 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-03-18 14:08:17 -0400
commit8848e4f55561dbae8d76d27ed5e168b17c69e85d (patch)
tree42fe127135e066114a41fce38a05b9b861f50910 /src
parente0171ac5d5b9b17e07c8e26160e602f4e4c32a20 (diff)
downloadspmc-8848e4f55561dbae8d76d27ed5e168b17c69e85d.tar.gz
Shared library search improvement
* Define platform dependent SPM_SHLIB_EXTENSION * rpath_libraries_available() uses SPM_SHLIB_EXTENSION
Diffstat (limited to 'src')
-rw-r--r--src/rpath.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpath.c b/src/rpath.c
index 74ee28b..4d4d801 100644
--- a/src/rpath.c
+++ b/src/rpath.c
@@ -187,8 +187,7 @@ int rpath_autoset(const char *filename, FSTree *tree) {
* @return `FSTree`
*/
FSTree *rpath_libraries_available(const char *root) {
- // TODO: Darwin support
- FSTree *tree = fstree(root, (char *[]) {".so", NULL}, SPM_FSTREE_FLT_CONTAINS | SPM_FSTREE_FLT_RELATIVE);
+ FSTree *tree = fstree(root, (char *[]) {SPM_SHLIB_EXTENSION, NULL}, SPM_FSTREE_FLT_CONTAINS | SPM_FSTREE_FLT_RELATIVE);
if (tree == NULL) {
perror(root);
fprintf(SYSERROR);