[Vm-dev] VM Maker gcc options

David Graham dgraham at unthinkable.org
Fri Mar 25 22:30:26 UTC 2011


Cool! Thanks Eliot and Igor, I figured smalltalk had a shortcut for something like that.  Although I'm using a mac for learning smalltalk, working on this port makes it feels as if I've entered an old school "port the compiler so you can learn the language" situation. :)

I should have described my code more clearly, but by overriding addDriver:sources:generator and removing -ldl in my CogFreeBSDConfig class (which is a subclass of CogUnixConfig, which is a subclass of CUnixConfig), should have had the same effect, correct?

Also, the really strange thing is that the options are different in the link.txt file ("-lm -ldl -lpthread" vs . "-lSM -lICE -ldl -lGL -lm -lnsl -lX11" in CUnixConfig).  Using the search method you guys gave me, I can't find any other references to -ldl in my hierarchy.




On Mar 25, 2011, at 4:54 PM, Eliot Miranda wrote:

> Hi David,
> 
>     Igor has answered your query. But here's how to answer it yourself.  Command-Shift-e on Mac, Alt-Shift-e on WIndows, and whatever the equivalent on linux causes the system to browse all methods whose literals include a string containing the selection.  So if you type and select -ldl in a workspace and do Command-Shift-e the method should be presented to you.
> 
> HTH,
> Eliot
> 
> On Fri, Mar 25, 2011 at 2:41 PM, David Graham <dgraham at unthinkable.org> wrote:
> 
> Hello,
> I've got the FreeBSD port building with the VMMaker system, but I can only do it if I manually edit "build/CMakeFiles/CogMTVM.dir/link.txt and remove the "-ldl" option.  I've looked everywhere inside the generator image to find out where this is set, but I'm not having any luck.  The closest thing I've found is CPlatformConfig>>addDriver:sources:generator, but overriding and removing the -ldl options in there doesn't seem to have any effect (also the other options don't match up).  Can anyone point me to where this is set?
> 
> Thanks,
> David
> 



More information about the Vm-dev mailing list