[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HP-UX g++ support in MLB
From: |
Alexandre Oliva |
Subject: |
Re: HP-UX g++ support in MLB |
Date: |
16 Mar 2001 00:56:16 -0300 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) |
On Mar 15, 2001, address@hidden wrote:
> The patch below adds -fPIC after -shared which resolved this.
Thanks, here's what I'm checking in:
Index: ChangeLog
from Albert Chin <address@hidden>
* ltcf-cxx.sh (archive_cmds) [HP-UX, GCC]: Link with -fPIC.
Index: ltcf-cxx.sh
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltcf-cxx.sh,v
retrieving revision 1.1.2.34
diff -u -p -r1.1.2.34 ltcf-cxx.sh
--- ltcf-cxx.sh 2001/03/06 11:14:53 1.1.2.34
+++ ltcf-cxx.sh 2001/03/16 03:52:53
@@ -269,8 +269,8 @@ case $host_os in
*)
if test $with_gcc = yes; then
case "$host_os" in
- hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared ${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 ${wl}+h ${wl}$soname ${wl}+b
${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects
$compiler_flags' ;;
+ hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -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 -fPIC ${wl}+h ${wl}$soname ${wl}+b
${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects
$compiler_flags' ;;
esac
else
# FIXME: insert proper C++ library support
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer address@hidden, redhat.com}
CS PhD student at IC-Unicamp address@hidden, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
Re: HP-UX g++ support in MLB, libtool-patches, 2001/03/15
- Re: HP-UX g++ support in MLB,
Alexandre Oliva <=