This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32830] shared library create by hppa64-hp11.11 can't run.
- From: "cnstar9988 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2007 00:43:23 -0000
- Subject: [Bug target/32830] shared library create by hppa64-hp11.11 can't run.
- References: <bug-32830-14862@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from cnstar9988 at gmail dot com 2007-10-15 00:43 -------
$ cat /usr/bin/gcc
#!/bin/sh
mode=ilp32
first=yes
for arg in "$@"; do
case $arg in
-milp32|-m32)
mode=ilp32
;;
-mlp64|-m64)
mode=lp64
;;
*)
if test $first = yes; then
set -- "$arg"
first=no
else
set -- "$@" "$arg"
fi
;;
esac
done
if test $first = yes; then
set --
fi
base=`basename $0`
case $base in
cc|cc-4.2.2)
base=gcc
;;
c++|c++-4.2.2)
base=g++
;;
esac
prog=/opt/gcc-4.2.2/$mode/bin/$base
exec $prog "$@"
======================================================
if not add libgcc_stub.a with shared library, my so can't work well.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32830