[Vm-dev] VM Maker gcc options

Igor Stasenko siguctua at gmail.com
Fri Mar 25 21:50:35 UTC 2011


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.

>
> Thanks,
> David



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list