On Tuesday 09 October 2007 23:41:48 Bernhard Fischer wrote: > On Tue, Oct 09, 2007 at 11:35:09PM +0200, Yann E. MORIN wrote: > > >Breaks when cross-compiling (at least for ARM) on a x86_64: > > >The reason is that we should use the cross-strip, rather than the native one, > >in scripts/trylink. Patch attached. > > >- strip -s --remove-section=.note --remove-section=.comment $EXE -o > >"$sharedlib_dir/libbusybox.so.$BB_VER" > >+ $STRIP -s --remove-section=.note --remove-section=.comment $EXE -o > >"$sharedlib_dir/libbusybox.so.$BB_VER" > > This, too will fail unless you use a strip that accepts said arguments. > Didn't we have a $(STRIPCMD) that contained $STRIP plus eventual args?
If we ever had it, it stayed in limbo, but... I seem to recall we had such a beast as make macros that would check arguments against a command, and return the argument if supported, or an alternative (or empty)... The only two incarnations of $STRIP I could find are (spaces squeezed to fill in a single line): # grep -r \\\$\\\(STRIP . Makefile: $(Q)$(STRIP) -s --remove-section=.note --remove-section=.comment \ scripts/Makefile.IMA: -$(STRIP) -s -R .note -R .comment -R .version $@ Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +0/33 662376056 | Software Designer | \ / CAMPAIGN | ^ | | --==< °_° >==-- °------------.-------: X AGAINST | /e\ There is no | | http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL | """ conspiracy. | °------------------------------°-------°------------------°--------------------° _______________________________________________ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox