View Full Version : cross-compiling (easy) question..

04-24-2002, 08:37 PM

finally able to compile a bunch of binaries for the tivo with the cross-compiler i built last week, but i have a quick question...

i forgot how to strip these binaries as i'm making/linking them... since i'm cross-compiling, i can't just my host OS 'strip' command cause.. well... it strips it wrong (wouldn't make sense for it to strip binaries for a different system/architecture, right?)...

i know i can cross-compile a ppc (tivo) 'strip' and use it on the tivo on the bin, but since i'm cross-compiling and linking on the host OS, can't i just tell it to spit out the stripped binary (just like i can tell it to compile statically vs. dynamically)?

i know there's a way.. just forgot how..

04-24-2002, 10:55 PM

04-25-2002, 04:43 PM

Thank you, Sir.

I had forgotten about /usr/local/tivo/bin/strip that was compiled while making the cross-compiler binaries. Works like a charm just as intended.

Thanks for the '-s' switch too. It's been a while since I used (g)cc with regularity and I've been used to stripping afterwards and not during compile/linking.