summaryrefslogtreecommitdiff
blob: cbbdf9b972429e96c166d903821d136102d144c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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() {