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
This commit is contained in:
parent
77b010bd36
commit
1001fd2166
1 changed files with 1 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ when defined(boehmgc):
|
||||||
elif defined(macosx):
|
elif defined(macosx):
|
||||||
const boehmLib = "libgc.dylib"
|
const boehmLib = "libgc.dylib"
|
||||||
else:
|
else:
|
||||||
const boehmLib = "/usr/lib/libgc.so.1"
|
const boehmLib = "libgc.so.1"
|
||||||
|
|
||||||
proc boehmGCinit {.importc: "GC_init", dynlib: boehmLib.}
|
proc boehmGCinit {.importc: "GC_init", dynlib: boehmLib.}
|
||||||
proc boehmGC_disable {.importc: "GC_disable", dynlib: boehmLib.}
|
proc boehmGC_disable {.importc: "GC_disable", dynlib: boehmLib.}
|
||||||
|
|
@ -335,4 +335,3 @@ else:
|
||||||
include "system/gc"
|
include "system/gc"
|
||||||
|
|
||||||
{.pop.}
|
{.pop.}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue