aboutsummaryrefslogtreecommitdiff
path: root/include/shlib.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-04-24 15:29:05 -0400
committerGitHub <noreply@github.com>2020-04-24 15:29:05 -0400
commit338abde356efcae6cf0a000b71b781d21c8733b6 (patch)
treeb275d303c93662ea4879fdca4597aa21e1c9421c /include/shlib.h
parentd78903961ee95376bccde7c1313be5b583911ab7 (diff)
parent24992f1f426111f0ce05df341087a55486ae48db (diff)
downloadspmc-338abde356efcae6cf0a000b71b781d21c8733b6.tar.gz
Merge pull request #30 from jhunkeler/shlib-macos
Shlib macos
Diffstat (limited to 'include/shlib.h')
-rw-r--r--include/shlib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/shlib.h b/include/shlib.h
index e0ccb5b..68b8487 100644
--- a/include/shlib.h
+++ b/include/shlib.h
@@ -4,13 +4,13 @@
#ifndef SPM_SHLIB_H
#define SPM_SHLIB_H
-#if defined(_MSC_VER)
+#if OS_WINDOWS && defined(_MSC_VER)
#define SPM_SHLIB_EXEC "dumpbin"
#define SPM_SHLIB_EXEC_ARGS "/dependents"
#define SPM_SHLIB_EXTENSION ".dll"
-#elif defined(__APPLE__) && defined(__MACH__)
-#define SPM_SHLIB_EXEC "/usr/bin/otool"
-#define SPM_SHLIB_EXEC_ARGS "-l"
+#elif OS_APPLE
+#define SPM_SHLIB_EXEC "/usr/bin/objdump"
+#define SPM_SHLIB_EXEC_ARGS "-macho -p"
#define SPM_SHLIB_EXTENSION ".dylib"
#else // linux (hopefully)
#define SPM_SHLIB_EXEC "/usr/bin/objdump"