From 1001fd21665ec1662d42e6e2bdc3cc98318b7002 Mon Sep 17 00:00:00 2001 From: Sergey Avseyev Date: Tue, 26 May 2015 08:36:23 +0300 Subject: Fix Boehm GC on linux Motivation ---------- Some linuxes (like Fedora) actually multiarch. And it means that libgc.so.1 not always installed into /usr/lib. It is better to entrust this job to ld and system configuration for it. Modification ------------ Use relative path for Boehm GC on 'other' OS (and linux in particular) Result ------ It is possible now to build nim with --gc:boehm on linux --- lib/system/mmdisp.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/system/mmdisp.nim b/lib/system/mmdisp.nim index a378f86e7..bdbb3a95a 100644 --- a/lib/system/mmdisp.nim +++ b/lib/system/mmdisp.nim @@ -70,7 +70,7 @@ when defined(boehmgc): elif defined(macosx): const boehmLib = "libgc.dylib" else: - const boehmLib = "/usr/lib/libgc.so.1" + const boehmLib = "libgc.so.1" proc boehmGCinit {.importc: "GC_init", dynlib: boehmLib.} proc boehmGC_disable {.importc: "GC_disable", dynlib: boehmLib.} @@ -335,4 +335,3 @@ else: include "system/gc" {.pop.} - -- cgit 1.4.1-2-gfad0