[Vm-dev] VM Maker gcc options

Igor Stasenko siguctua at gmail.com
Fri Mar 25 23:13:38 UTC 2011


On 25 March 2011 23:30, David Graham <dgraham at unthinkable.org> wrote:
>
> 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?
>
Yes, that what you should normally do.

> 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.
>
Maybe if you generate fresh configs it will disappear? :)

>
>
>
> 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
>>
>
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list