Browse Source

dpkg: On Mac OS X check for update_dyld_shared_cache instead of ldconfig

Guillem Jover 13 years ago
parent
commit
8b40380413
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/help.c

+ 6 - 0
src/help.c

@@ -89,7 +89,13 @@ void checkpath(void) {
     TAR,
     FIND,
     BACKEND,
+    /* Mac OS X uses dyld (Mach-O) instead of ld.so (ELF), and does not have
+     * an ldconfig. */
+#if defined(__APPLE__) && defined(__MACH__)
+    "update_dyld_shared_cache",
+#else
     "ldconfig",
+#endif
 #if BUILD_START_STOP_DAEMON
     "start-stop-daemon",
 #endif