[oe-commits] org.oe.dev Delete dummy libc.so that was created during glibc-initial step.

khem commit oe at amethyst.openembedded.net
Mon Sep 1 17:46:46 UTC 2008


Delete dummy libc.so that was created during glibc-initial step. 
This library is overwritten by a linker script file called libc.so during 
complete glibc install so the packaged built after glibc is staged are fine.
But the binaries/libraries that build with glibc and depend on libc.so  in some
form see this dummy libc.so and gets things wrong.

This fix deletes the dummy libc.so before gcc-intermediate is staged. Because
the main purpose of dummy libc.so is to get gcc-intermediate built with shared
lib support. Ideally this libc.so should be deleted right after do_configure of
gcc-intermediate but gcc's configure is spread across and some configure stuff
happens during compile step. Therefore its best to delete this libc.so after
the compile step is done.

Author: khem at openembedded.org
Branch: org.openembedded.dev
Revision: 07e94cb324a339b56adbc89b90aec2f8007c999b
ViewMTN: http://monotone.openembedded.org/revision/info/07e94cb324a339b56adbc89b90aec2f8007c999b
Files:
1
packages/gcc/gcc-cross-intermediate.inc
Diffs:

#
# mt diff -r45bd65b695cf5ba23eb106afe24d304318694f55 -r07e94cb324a339b56adbc89b90aec2f8007c999b
#
#
#
# patch "packages/gcc/gcc-cross-intermediate.inc"
#  from [3fd758b824b19229a3f6e7df95246f0d382bc7ea]
#    to [f9fd7b7bd527b6a3bd2760f51051b083e23cfc8d]
#
============================================================
--- packages/gcc/gcc-cross-intermediate.inc	3fd758b824b19229a3f6e7df95246f0d382bc7ea
+++ packages/gcc/gcc-cross-intermediate.inc	f9fd7b7bd527b6a3bd2760f51051b083e23cfc8d
@@ -16,6 +16,13 @@ EXTRA_OECONF = "--with-local-prefix=${ST
 		--with-build-sysroot=${STAGING_DIR_TARGET} \
 		${@get_gcc_fpu_setting(bb, d)}"
 
+do_stage_prepend () {
+	# get rid of dummy libc.so
+	if [ -z "`file ${STAGING_DIR_TARGET}${layout_libdir}/libc.so | grep "ASCII C program text"`" ]; then
+		rm -rf ${STAGING_DIR_TARGET}${layout_libdir}/libc.so
+	fi
+}
+
 do_install () {
 	:
 }






More information about the Openembedded-commits mailing list