[Vm-dev] VM Maker gcc options

Igor Stasenko siguctua at gmail.com
Fri Mar 25 21:54:33 UTC 2011


On 25 March 2011 22:50, Igor Stasenko <siguctua at gmail.com> wrote:
> On 25 March 2011 22:41, 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?
>
>
> See
> CUnixConfig>>addDriver: name sources: aSources generator: cmakeGen
>
> This code should be factored out into something more appropriate.
> So, feel free to add extra methods with nice comments and instead of having:
>
> LINK_FLAGS "-lSM -lICE -ldl -lGL -lpthread -lm -lnsl -lX11"'
>
> it could be made as:
>
> LINK_FLAGS "' , (self driverLibs:name) '"'
>
> and in driverLibs but necessary libraries for driver , appropriate for
> driver with given name.
>
> Because it is a bit lame that all drivers are linked with same libs,
> even if they are not used by driver.
>

Of and btw, for the future, if you get stuck like that , use
whole-source code search

type
-ldl

in workspace, select it then right click and in menu select:
   Extended search ... --> method source with it.

>>
>> Thanks,
>> David
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list