This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
libtool / GCC 3.2 question and patch
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: binutils at sources dot redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Thu, 13 Jun 2002 12:13:46 -0700 (PDT)
- Subject: libtool / GCC 3.2 question and patch
- Reply-to: sje at cup dot hp dot com
Since the deadline for "big changes" is coming up on GCC 3.2, can I
assume that the libtools used for GCC 3.2 is not going to be updated to
use the libtools top of tree?
If so I would like to make a change in the libtool we are using for GCC
top-of-tree to support the IA64 HP-UX platform. Most of the changes I
need are already in the binutils libtool but I don't think those changes
have been propagated over to GCC from binutils. In addition to the
changes already in binutils I need one more change (attached) to
ltcf-cxx.sh. This change wasn't needed for binutils since binutils
doesn't use C++ so it didn't get checked in with the other changes. I
have attached a patch and am sending this to binutils and gcc-patches
because I think the way this works is to get the change checked into
binutils and then someone can copy over all the libtool files to GCC.
Is that correct? Can it be done this way or is there some other process
that needs to happen?
I have no write permission to either binutils or gcc.
Steve Ellcey
sje@cup.hp.com
2002-06-13 Steve Ellcey <sje@cup.hp.com>
* ltcf-cxx.sh (hpux*): Modify to support ia64-*-hpux*
*** src.orig/ltcf-cxx.sh Thu Jun 13 11:31:24 2002
--- src/ltcf-cxx.sh Thu Jun 13 11:32:00 2002
*************** case $host_os in
*** 250,260 ****
;;
hpux*)
if test $with_gnu_ld = no; then
! hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
export_dynamic_flag_spec='${wl}-E'
fi
- hardcode_direct=yes
hardcode_minus_L=yes # Not in the search PATH, but as the default
# location of the library.
--- 250,266 ----
;;
hpux*)
if test $with_gnu_ld = no; then
! case "$host_cpu" in
! ia64*)
! hardcode_libdir_flag_spec='-L$libdir'
! hardcode_shlibpath_var=no ;;
! *)
! hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ;;
! esac
! hardcode_direct=yes
hardcode_libdir_separator=:
export_dynamic_flag_spec='${wl}-E'
fi
hardcode_minus_L=yes # Not in the search PATH, but as the default
# location of the library.
*************** case $host_os in
*** 283,289 ****
if test $with_gnu_ld = no; then
case "$host_os" in
hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
! *) archive_cmds='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;;
esac
fi
else
--- 289,302 ----
if test $with_gnu_ld = no; then
case "$host_os" in
hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
! *)
! case "$host_cpu" in
! ia64*)
! archive_cmds='$LD -b +h $soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' ;;
! *)
! archive_cmds='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;;
! esac
! ;;
esac
fi
else