mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
30 lines
823 B
Diff
30 lines
823 B
Diff
From 8802fe583eda93a928739cb3bc3517e19d1a6fa1 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Tuegel <ttuegel@gmail.com>
|
|
Date: Sun, 11 Oct 2015 07:19:42 -0500
|
|
Subject: [PATCH 3/3] no ldconfig
|
|
|
|
---
|
|
src/ccall.cpp | 6 +-----
|
|
1 file changed, 1 insertion(+), 5 deletions(-)
|
|
|
|
diff --git a/src/ccall.cpp b/src/ccall.cpp
|
|
index 22015ff..2821192 100644
|
|
--- a/src/ccall.cpp
|
|
+++ b/src/ccall.cpp
|
|
@@ -13,11 +13,7 @@ extern "C" DLLEXPORT void jl_read_sonames(void)
|
|
{
|
|
char *line=NULL;
|
|
size_t sz=0;
|
|
-#if defined(__linux__)
|
|
- FILE *ldc = popen("/sbin/ldconfig -p", "r");
|
|
-#else
|
|
- FILE *ldc = popen("/sbin/ldconfig -r", "r");
|
|
-#endif
|
|
+ FILE *ldc = popen("true", "r");
|
|
if (ldc == NULL) return; // ignore errors in running ldconfig (other than whatever might have been printed to stderr)
|
|
|
|
while (!feof(ldc)) {
|
|
--
|
|
2.5.2
|
|
|