public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cnstar9988 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/32830] shared library create by hppa64-hp11.11 can't run.
Date: Mon, 15 Oct 2007 00:43:00 -0000	[thread overview]
Message-ID: <20071015004323.28717.qmail@sourceware.org> (raw)
In-Reply-To: <bug-32830-14862@http.gcc.gnu.org/bugzilla/>



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


      parent reply	other threads:[~2007-10-15  0:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-20  1:30 [Bug c/32830] New: " cnstar9988 at gmail dot com
2007-07-20  4:24 ` [Bug target/32830] " pinskia at gcc dot gnu dot org
2007-07-20  5:26 ` cnstar9988 at gmail dot com
2007-07-20  5:28 ` cnstar9988 at gmail dot com
2007-07-20  7:31 ` cnstar9988 at gmail dot com
2007-07-23  6:09 ` cnstar9988 at gmail dot com
2007-07-23  6:22 ` cnstar9988 at gmail dot com
2007-07-23  7:15 ` cnstar9988 at gmail dot com
2007-07-23  9:20 ` pinskia at gcc dot gnu dot org
2007-10-14 16:23 ` danglin at gcc dot gnu dot org
2007-10-15  0:43 ` cnstar9988 at gmail dot com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071015004323.28717.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).