This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/32830] shared library create by hppa64-hp11.11 can't run.



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]