[Bug target/32830] shared library create by hppa64-hp11.11 can't run.
cnstar9988 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Oct 15 00:43:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list