diff options
author | Chris Larson <clarson@kergoth.com> | 2003-11-21 18:27:14 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2003-11-21 18:27:14 +0000 |
commit | e9b171e0738c2acef0650328b7f2e1ae7cdc55cc (patch) | |
tree | 8afdd2f094195bb88a7a9636f5b9bd9f53ebb492 /glibc/glibc_2.3.2.oe | |
parent | acea8d73cb0c72991690d488915e426bf7e46675 (diff) |
Numerous build fixes from an oemake -a run, including two more fixes for libtool 'libdir from .la file leaking into library search path' situations.
BKrev: 3fbe5902eywlLRHkRQ1FaDS5C01-jg
Diffstat (limited to 'glibc/glibc_2.3.2.oe')
-rw-r--r-- | glibc/glibc_2.3.2.oe | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/glibc/glibc_2.3.2.oe b/glibc/glibc_2.3.2.oe index af22f2e48c..c5ae1b4a3b 100644 --- a/glibc/glibc_2.3.2.oe +++ b/glibc/glibc_2.3.2.oe @@ -77,7 +77,21 @@ glibcbuild_do_unpack () { if [ -e "${FILESDIR}/asm-${TARGET_ARCH}-unistd.h" ]; then cp -a "${FILESDIR}/asm-${TARGET_ARCH}-unistd.h" "${WORKDIR}/linux/include/asm-${TARGET_ARCH}/unistd.h" fi - ln -sf "asm-${TARGET_ARCH}" "${WORKDIR}/linux/include/asm" + case "${TARGET_ARCH}" in + i686) + TARGET_ARCH=i386 + ;; + i586) + TARGET_ARCH=i386 + ;; + i486) + TARGET_ARCH=i386 + ;; + esac + if test ! -e ${WORKDIR}/linux/include/asm-$TARGET_ARCH; then + oefatal unable to create asm symlink in kernel headers + fi + ln -sf "asm-$TARGET_ARCH" "${WORKDIR}/linux/include/asm" } python do_unpack () { @@ -119,12 +133,19 @@ do_stage() { mv '${STAGING_LIBDIR}/libpthread.so' '${STAGING_LIBDIR}/libpthread-old.so' cat '${STAGING_LIBDIR}/libpthread-old.so' | sed -e's,/lib/,,g' > '${STAGING_LIBDIR}/libpthread.so' cp -a '${WORKDIR}/linux/include/linux' '${STAGING_DIR}/target/include/' - cp -a '${WORKDIR}/linux/include/asm-${TARGET_ARCH}' '${STAGING_DIR}/target/include/' + install -d ${STAGING_DIR}/target/include/gnu \ + ${STAGING_DIR}/target/include/bits + install -m 0644 ${S}/include/gnu/stubs.h ${STAGING_DIR}/target/include/gnu/ + install -m 0644 ${B}/bits/stdio_lim.h ${STAGING_DIR}/target/include/bits/ for r in ${rpcsvc}; do h=`echo $r|sed -e's,\.x$,.h,'` install -m 0644 ${S}/sunrpc/rpcsvc/$h ${STAGING_DIR}/target/include/rpcsvc/ done - ln -sf 'asm-${TARGET_ARCH}' '${STAGING_DIR}/target/include/asm' + cp -a '${WORKDIR}/linux/include/asm' '${STAGING_DIR}/target/include/' + cp -a "${WORKDIR}/linux/include/`readlink ${WORKDIR}/linux/include/asm`" '${STAGING_DIR}/target/include/' + install -m 0644 ${B}/libc_nonshared.a ${STAGING_LIBDIR}/ + install -m 0644 ${B}/libc_pic.a ${STAGING_LIBDIR}/ + install -m 0644 ${B}/libc.a ${STAGING_LIBDIR}/ } do_install() { |