diff options
author | 2011-03-06 03:10:21 +0800 | |
---|---|---|
committer | 2011-03-06 03:10:21 +0800 | |
commit | 8fbe7915116bb36e90bdb5e626bb4829ecdeb3e0 (patch) | |
tree | 4e65c43616495e7ee0ecc5447f6456936141ef4e | |
parent | modified glibc eblit for mips n32 cross toolchain (diff) | |
download | loongson-8fbe7915116bb36e90bdb5e626bb4829ecdeb3e0.tar.gz loongson-8fbe7915116bb36e90bdb5e626bb4829ecdeb3e0.tar.bz2 loongson-8fbe7915116bb36e90bdb5e626bb4829ecdeb3e0.zip |
added eblit.diff
Signed-off-by: Zhang Le <r0bertz@gentoo.org>
-rw-r--r-- | sys-libs/glibc/files/eblit.diff | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sys-libs/glibc/files/eblit.diff b/sys-libs/glibc/files/eblit.diff new file mode 100644 index 0000000..cbbdf9b --- /dev/null +++ b/sys-libs/glibc/files/eblit.diff @@ -0,0 +1,38 @@ +diff --git a/sys-libs/glibc/files/eblits/src_compile.eblit b/sys-libs/glibc/files/eblits/src_compile.eblit +index 9fe9dc9..c19fecd 100644 +--- a/sys-libs/glibc/files/eblits/src_compile.eblit ++++ b/sys-libs/glibc/files/eblits/src_compile.eblit +@@ -147,17 +150,6 @@ toolchain-glibc_headers_compile() { + libc_cv_z_nodelete=yes \ + libc_cv_z_nodlopen=yes \ + libc_cv_z_relro=yes +- libc_cv_mips_tls=yes +- +- if [[ ${CTARGET} == "mips64el-unknown-linux-gnu" ]] ; then +- # remove "-n32" gcc switch, since gcc for other arch don't have this +- sed -i 's/-mabi=$mips_config_abi//g' "${S}"/ports/sysdeps/mips/preconfigure +- sed -i 's/CC/CFLAGS/' "${S}"/ports/sysdeps/mips/mips64/n32/Makefile +- sed -i 's/CC/CFLAGS/' "${S}"/ports/sysdeps/mips/mips64/n64/Makefile +- # fix stdio_lim.h missing problem +- # if you are building a n64 system, you may need to replace 32 with 64 +- sed -i 's/_MIPS_SZPTR/32/' "${S}"/ports/sysdeps/mips/bits/wordsize.h +- fi + + # Pick out the correct location for build headers + local ports="" myconf="--disable-sanity-checks --enable-hacker-mode" +diff --git a/sys-libs/glibc/files/eblits/src_install.eblit b/sys-libs/glibc/files/eblits/src_install.eblit +index af3c2ac..b334b58 100644 +--- a/sys-libs/glibc/files/eblits/src_install.eblit ++++ b/sys-libs/glibc/files/eblits/src_install.eblit +@@ -199,11 +193,6 @@ toolchain-glibc_headers_install() { + # we build a 2nd stage cross-compiler, gcc finds the target + # system headers correctly. See gcc/doc/gccinstall.info + dosym usr/include /usr/${CTARGET}/sys-include +- # restore wordsize.h +- if [[ ${CTARGET} == "mips64el-unknown-linux-gnu" ]] ; then +- sed -i 's/\(__WORDSIZE.\+\)\(32\|64\)$/\1_MIPS_SZPTR/' \ +- "${D}"/$(alt_headers)/bits/wordsize.h || die "restore wordsize.h failed" +- fi + } + + src_strip() { |