After some further experimentation, I am currently doing the following:

cd /usr/local/xorp

scons --clean prefix='/home/build/octeon-staging/' \
STRIP=mips64-octeon-linux-gnu-strip \
CC=mips64-octeon-linux-gnu-gcc \
CXX=mips64-octeon-linux-gnu-g++ \
RANLIB=mips64-octeon-linux-gnu-ranlib \
CFLAGS=-I/home/build/octeon-staging/include \
CXXFLAGS=-I/home/build/octeon-staging/include \
LINKFLAGS=-L/home/build/octeon-staging/lib \

scons debug=no strip=yes enable_tests=yes prefix='/home/build/octeon-staging/' 
build=mips64-octeon-linux-gnu \
STRIP=mips64-octeon-linux-gnu-strip \
CC=mips64-octeon-linux-gnu-gcc \
CXX=mips64-octeon-linux-gnu-g++ \
RANLIB=mips64-octeon-linux-gnu-ranlib \
CFLAGS=-I/home/build/octeon-staging/include \
CXXFLAGS=-I/home/build/octeon-staging/include \
LINKFLAGS=-L/home/build/octeon-staging/lib \

#scons install prefix='/home/build/octeon-staging/'

I do get everything to build, and the size of the directory is down to 146MB.  
I am a little confused by the Install vs. the build.  The install seems to do 
the build all over, and stopping because of some error that it can not find 
something or other.  I can not remember what it was now, but it did start 
installing binaries into the prefix directory, but never finished.  Do I need 
to run install or is setting strip=yes enough?  


Tom Kuhn 
Office: (407) 737-4953 
Cell: (407) 721-0628 
[email protected] 


-----Original Message-----
From: Ben Greear [mailto:[email protected]] 
Sent: Friday, June 01, 2012 2:58 PM
To: Kuhn, Thomas J (IS)
Cc: [email protected]
Subject: EXT :Re: [Xorp-hackers] Cross Compiled XORP is quite large

On 06/01/2012 11:53 AM, Kuhn, Thomas J (IS) wrote:
> Hi group!
>
> I ham not an expert in Linux or cross compiling, but, with a lot of help from 
> the BUILD_NOTES file, I recently cross compiled (mip64-octeon-linux-gnu) 
> OpenSSL,
> ncurses, and libpcab prior to cross compiling XORP. I then cross compiled 
> XORP. Everything seems to have gone on without a hitch, but when I look in 
> the /obj
> directory I see the /mip64-octeon-linux-gnu folder. I assume that is 
> everything that I need to put on my platform, but it is a whopping 632MB! 
> That seems a
> little large. What am I missing. Flags? debug? Here is what I set:
>
> scons build=mips64-octeon-linux-gnu \
>
> STRIP=mips64-octeon-linux-gnu-sstrip \
>
> CC=mips64-octeon-linux-gnu-gcc \
>
> CXX=mips64-octeon-linux-gnu-g++ \
>
> CFLAGS=-I/home/build/octeon-staging/include \
>
> CXXFLAGS=-I/home/build/octeon-staging/include \
>
> LINKFLAGS=-L/home/build/octeon-staging/lib \

Do the install step.  I think that strips by default..and if not,
you can manually do a strip on all of the installed files.  That should
get it down to a much more manageable size...

Thanks,
Ben

>
> *Tom Kuhn*
>
> *Northrop Grumman Information Systems*
> 11474 Corporate Blvd., Suite 120
> Orlando, Fl 32817
> Office: (407) 737-4953
> Cell: (407) 721-0628
> [email protected] <mailto:[email protected]>
>
>
>
> _______________________________________________
> Xorp-hackers mailing list
> [email protected]
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers


-- 
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to