This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: Enable PIC for mips*-*-*


This patch enables PIC for mips*-*-*.


H.J.
----
2001-10-21  H.J. Lu <hjl@gnu.org>

	* mh-mipspic: New.
	* mt-mipspic: Likewise.

2001-10-21  H.J. Lu <hjl@gnu.org>

	* configure.in (host_makefile_frag): Include config/mh-mipspic
	for mips*-*-* if shared library is enabled.
	(target_makefile_frag): Include config/mt-mipspic for mips*-*-*
	if shared library is enabled.

--- binutils/config/mh-mipspic.pic	Sun Oct 21 09:27:02 2001
+++ binutils/config/mh-mipspic	Sun Oct 21 09:26:10 2001
@@ -0,0 +1 @@
+PICFLAG=-fpic
--- binutils/config/mt-mipspic.pic	Sun Oct 21 09:26:57 2001
+++ binutils/config/mt-mipspic	Sun Oct 21 09:26:07 2001
@@ -0,0 +1 @@
+PICFLAG_FOR_TARGET=-fpic
--- binutils/configure.in.pic	Wed Sep 19 09:31:08 2001
+++ binutils/configure.in	Sun Oct 21 09:28:59 2001
@@ -312,6 +312,9 @@ if [ x${shared} = xyes ]; then
     ia64-*-*)
       host_makefile_frag="${host_makefile_frag} config/mh-ia64pic"
       ;;
+    mips*-*-*)
+      host_makefile_frag="${host_makefile_frag} config/mh-mipspic"
+      ;;
     sparc64-*-*)
       host_makefile_frag="${host_makefile_frag} config/mh-sparcpic"
       ;;
@@ -1161,6 +1164,9 @@ if [ x${shared} = xyes ]; then
     i[3456]86-*)
       target_makefile_frag="${target_makefile_frag} config/mt-x86pic"
       ;;
+    mips*-*-*)
+      target_makefile_frag="${host_makefile_frag} config/mt-mipspic"
+      ;;
     ia64-*)
       target_makefile_frag="${target_makefile_frag} config/mt-ia64pic"
       ;;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]