On Tuesday 09 October 2007 21:13:56 Denys Vlasenko wrote:
> In current svn:
> CONFIG_BUILD_LIBBUSYBOX works again,
> CONFIG_FEATURE_INDIVIDUAL now works too.
> Run-tested on i386 glibc only, try on other arches.

Breaks when cross-compiling (at least for ARM) on a x86_64:

[--SNIP--]
  CC      util-linux/switch_root.o
  CC      util-linux/umount.o
  AR      util-linux/lib.a
  LINK    busybox_unstripped
Trying libraries: crypt m
Library crypt is needed
Library m is needed
Final link with: crypt m
strip: Unable to recognise the format of the input file 
`0_lib/libbusybox.so.1.8.0.svn_unstripped'
chmod: cannot access `0_lib/libbusybox.so.1.8.0.svn': No such file or directory
libbusybox: 0_lib/libbusybox.so.1.8.0.svn
Linking 0_lib/busybox_unstripped failed
[--SNIP--]

The reason is that we should use the cross-strip, rather than the native one,
in scripts/trylink. Patch attached.

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.  |
°------------------------------°-------°------------------°--------------------°
Index: busybox/scripts/trylink
===================================================================
--- busybox/scripts/trylink	(revision 20212)
+++ busybox/scripts/trylink	(working copy)
@@ -186,7 +186,7 @@
 	cat $EXE.out
 	exit 1
     }
-    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"
     chmod a+x "$sharedlib_dir/libbusybox.so.$BB_VER"
     echo "libbusybox: $sharedlib_dir/libbusybox.so.$BB_VER"
 fi
@@ -208,7 +208,7 @@
 	cat $EXE.out
 	exit 1
     }
-    strip -s --remove-section=.note --remove-section=.comment $EXE -o "$sharedlib_dir/busybox"
+    $STRIP -s --remove-section=.note --remove-section=.comment $EXE -o "$sharedlib_dir/busybox"
     echo "busybox linked against libbusybox: $sharedlib_dir/busybox"
 fi
 
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to