From: Stan Shebs <stanshebs@earthlink.net>
To: gdb@sourceware.org
Subject: Re: How to compile a static gdb-server?
Date: Wed, 21 Jan 2015 16:47:00 -0000 [thread overview]
Message-ID: <54BFD7FB.2080608@earthlink.net> (raw)
In-Reply-To: <CAGmPkf+8Vg7xbhLHwYeVJn5MyxhrtHa74fk4P7XLi-4o6kpeQA@mail.gmail.com>
On 1/20/15 9:39 PM, fei ding wrote:
> Hey guys:
>
> I need to compile a static gdb-server, which LDFLAGS=-static in
> makefile, but it fails like this:
>
> gcc -shared -fPIC -Wl,--no-undefined -g -O2 -I. -I. -I./../common
> -I./../regformats -I./.. -I./../../include -I./../gnulib/import
> -Ibuild-gnulib-gdbserver/import -Wall -Wdeclaration-after-statement
> -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body
> -DGDBSERVER \
> -static -Wl,--dynamic-list=./proc-service.list -o
> libinproctrace.so [...]
I'd suggest adding --disable-inprocess-agent to the configure line; the
in-process agent library is wired up to be dynamically loaded, and is
only needed if you're doing fast tracepoints (ftrace command).
Stan
prev parent reply other threads:[~2015-01-21 16:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 5:40 fei ding
2015-01-21 5:59 ` Ofir Cohen
2015-01-21 16:47 ` Stan Shebs [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=54BFD7FB.2080608@earthlink.net \
--to=stanshebs@earthlink.net \
--cc=gdb@sourceware.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