This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] GNU/kOpenSolaris support (libtool)
- From: Robert Millan <rmh at aybabtu dot com>
- To: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>, Ian Lance Taylor <iant at google dot com>, gcc-patches at gcc dot gnu dot org, David Bartley <dtbartle at uwaterloo dot ca>, mspang at uwaterloo dot ca
- Date: Fri, 30 Jan 2009 00:02:39 +0100
- Subject: Re: [PATCH] GNU/kOpenSolaris support (libtool)
- References: <20090123232056.GA6108@thorin> <m34ozkcgc0.fsf@google.com> <20090129184906.GG1061@ins.uni-bonn.de>
On Thu, Jan 29, 2009 at 07:49:07PM +0100, Ralf Wildenhues wrote:
> * Ian Lance Taylor wrote on Wed, Jan 28, 2009 at 03:30:39AM CET:
> > Robert Millan <rmh@aybabtu.com> writes:
> > > 2009-01-24 Robert Millan <rmh@aybabtu.com>
> > >
> > > * configure.ac: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
> > > * gcc/config.gcc: Likewise.
> > > * gcc/config/i386/kopensolaris-gnu.h: New file. Undefine
> > > `MD_UNWIND_SUPPORT'.
> > > * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
> >
> > This is OK.
>
> committed to trunk with these ChangeLog entries:
Thanks!
Btw, Ralf said it'd be OK to port GNU/kOpenSolaris support from libtool git
to gcc. I'm attaching this patch, obtained from:
http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=356234e0e70f82cbe99622c88d5f27694d3bf9a1
configure would need to be regenerated in the following directories:
boehm-gc
gcc
libffi
libgfortran
libgomp
libmudflap
libobjc
libssp
libstdc++-v3
zlib
Thanks in advance
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
2009-01-29 Robert Millan <rmh@aybabtu.com>
Support GNU/kOpenSolaris.
* libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
(_LT_LANG_CXX_CONFIG) [kopensolaris*-gnu]: Recognize
GNU/kOpenSolaris.
Index: libtool.m4
===================================================================
--- libtool.m4 (revision 143770)
+++ libtool.m4 (working copy)
@@ -2445,7 +2445,7 @@
;;
# This must be Linux ELF.
-linux* | k*bsd*-gnu)
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
version_type=linux
need_lib_prefix=no
need_version=no
@@ -3077,7 +3077,7 @@
;;
# This must be Linux ELF.
-linux* | k*bsd*-gnu)
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
lt_cv_deplibs_check_method=pass_all
;;
@@ -3698,7 +3698,7 @@
;;
esac
;;
- linux* | k*bsd*-gnu)
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
case $cc_basename in
KCC*)
# KAI C++ Compiler
@@ -3982,7 +3982,7 @@
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
;;
- linux* | k*bsd*-gnu)
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
case $cc_basename in
# old Intel for x86_64 which still supported -KPIC.
ecc*)
@@ -4363,7 +4363,7 @@
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
;;
- gnu* | linux* | tpf* | k*bsd*-gnu)
+ gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
tmp_diet=no
if test "$host_os" = linux-dietlibc; then
case $cc_basename in
@@ -5848,7 +5848,7 @@
_LT_TAGVAR(inherit_rpath, $1)=yes
;;
- linux* | k*bsd*-gnu)
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
case $cc_basename in
KCC*)
# Kuck and Associates, Inc. (KAI) C++ Compiler