This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Set lt_cv_deplibs_check_method to pass_all for sh-linux-gnu (Was[PATCH/RFA] Java: DWARF2 exception on sh-linux)
- From: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Cc: aoliva at redhat dot com, joern dot rennecke at superh dot com, stephen dot clarke at earthling dot net, java-patches at gcc dot gnu dot org
- Date: Thu, 05 Dec 2002 13:28:44 +0900
- Subject: Set lt_cv_deplibs_check_method to pass_all for sh-linux-gnu (Was[PATCH/RFA] Java: DWARF2 exception on sh-linux)
Hi,
Alexandre Oliva <aoliva@redhat.com> wrote:
> On Nov 21, 2002, kaz Kojima <kkojima@rr.iij4u.or.jp> wrote:
>
>> * libtool.m4 (linux-gnu*): Set lt_cv_deplibs_check_method to
>> pass_all also for sh*.
>
> Since this is in the libtool tree already, it's ok to put it in.
> However, before you check this in, please sanity-check that it is
> actually safe to link any non-PIC code into SH shared libraries. If
> there's any case in which this can possibly break, then pass_all is
> not the right thing to use, and we'd better arrange for it to be taken
> out of libtool mainline.
The attached patch does it for sh-linux-gnu and sh[34]-linux-gnu only.
I guess it's better for the time being.
Ok for 3.4-BIB?
Regards,
kaz
--
2002-12-05 Kaz Kojima <kkojima@gcc.gnu.org>
* boehm-gc/configure, libf2c/configure: Rebuilt.
* libffi/configure, libjava/configure: Ditto.
* libobjc/configure, libstdc++-v3/configure: Ditto.
* zlib/configure: Ditto.
* libtool.m4 (linux-gnu*): Set lt_cv_deplibs_check_method to
pass_all also for sh and sh[34]*.
diff -u3prN ORIG/gccbib/libtool.m4 LOCAL/gccbib/libtool.m4
--- ORIG/gccbib/libtool.m4 Wed Aug 14 11:39:52 2002
+++ LOCAL/gccbib/libtool.m4 Sun Dec 1 10:44:06 2002
@@ -622,7 +622,7 @@ irix5* | irix6*)
# This must be Linux ELF.
linux-gnu*)
case $host_cpu in
- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
+ alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh | sh[34]* )
lt_cv_deplibs_check_method=pass_all ;;
*)
# glibc up to 2.1.1 does not perform some relocations on ARM