[Vm-dev] VM Maker gcc options

Igor Stasenko siguctua at gmail.com
Sat Mar 26 13:09:07 UTC 2011


On 26 March 2011 06:37, David Graham <dgraham at unthinkable.org> wrote:
>
>
>>
>>> 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.
>>>
>
> Found it!
>
> CUnixConfig>>setExtraTargetProperties:
> maker addExternalLibraries:
>                #(
>                        'm'  "math lib"
>                        'dl'  "dynamic loader"
>                        'pthread' "posix threads"
>                ).
>
> I didn't catch this the first time through and it didn't turn up in the code search without the "-l", but it clicked when I saw the option pattern while following code.  I overrode the method in my class and the FreeBSD build now completes.
>
> If I understand the hudson process correctly, this package needs to get added to the VMMaker repo on squeaksource before the automated build will work?  I placed a fileout on my server:
> www.unthinkable.org/dl/CMakeVMMaker-FreeBSD-Cog.st
>
> There are a number of things I need to work on with the FreeBSD port, but I'm just happy that I was able to get it working at this point. :)

Well done! Thanks a lot.

Is it runs as well? Because the thing is that it may compile & link
well, but then don't run because can't link with some libraries at run
time.

-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list