From 8848e4f55561dbae8d76d27ed5e168b17c69e85d Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 18 Mar 2020 14:08:17 -0400 Subject: Shared library search improvement * Define platform dependent SPM_SHLIB_EXTENSION * rpath_libraries_available() uses SPM_SHLIB_EXTENSION --- src/rpath.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/rpath.c') 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); -- cgit