[Xorp-users] regarding static compilation of xorp

Ben Greear greearb at candelatech.com
Thu Jul 8 00:38:25 PDT 2010


On 07/07/2010 10:54 PM, Ben Greear wrote:
> On 07/07/2010 10:23 PM, shashi kumar wrote:
>> Hi All,
>>
>> Is any body compiled xorp code with "static" option ?
>> If yes, could you please send me the procedure .
>>
>> when i am trying with CXXFLAGS=-static i am getting libstdc++.so linking
>> error,
>> i also tryed with CXXFLAGS=--all-static but it is throwing errors while
>> i am executing ./configure
>>
>> I want to know whether it is possible to compile xorp statically.
>>
>> Could any one please help me out in this regard .
>
> Looks like you are trying an older version, but I notice that
> xorp.ct also fails when you do:
>
> scons shared=no
>
> I'll work on fixing xorp.ct.

It now compiles on my machine:

Grab latest from github:
http://github.com/greearb/xorp.ct

Make sure you have static glibc, pcap and openssl, at least, installed.

Change to the xorp directory, and run:

scons shared=no

No idea if the resulting binaries actually work, so please let me know
if you try it out.  I'll try to set up a build-bot for static builds
next time I'm poking at buildbot.

Thanks,
Ben


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-users mailing list