[ooc-compiler] libgc - how to make dynamic?
Brought to you by:
mva
|
From: Alan F. <Ala...@gr...> - 2002-02-12 12:24:53
|
Hi, I have tried to make OOC dynamically load its garbage collector with no luck. The only way I can get it to work is to have gc.a statically linked into the compiler when I build it. Can anyone offer some suggestions? First, here is some background information. I run RedHat linux versions 7.1 and 7.2, which have libtool installed on them. GC does not come with RedHat, nor is an rpm version available for it (to the best of my knowledge), so I built the GC from scratch and copied libgc.so.0 into the directory /usr/local/lib, which is in my path (it appears in /etc/ld.so.conf). When I remove /gc from my /oo2c directory, make the distribution clean, and rerun configure, I get an error message stating that configure could not locate an installed libgc... The only way I can build oo2c is leaving /gc under /oo2c, and when I do this the building of oo2c statically binds the garbage collector to it. This is verified by executing ldd /usr/local/bin/oo2c where libgc.so.0 is found missing (the other dynamic links are present, when compared with Stewart Greenhill's output). Al -- Alan D. Freed, PhD email: Ala...@gr... Polymers Branch, MS 49-3 Fr...@bm... (tuesdays) NASA Glenn Research Center Al...@oh... (thursdays) Cleveland, Ohio 44135 tel: 216-433-8747 fax: 216-977-7132 |