From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Ricardo Telichevesky <ricardo@teli.org>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Trying to build libgfortran.a with -fPIC
Date: Tue, 18 Dec 2018 14:42:00 -0000 [thread overview]
Message-ID: <CAH6eHdSv_V-wZUcucqzcgLrLa1z7GmLXVJ7jxsf7035h-TA=Nw@mail.gmail.com> (raw)
In-Reply-To: <537a6b62-8d5c-1761-124d-375be1ba122c@teli.org>
On Tue, 18 Dec 2018 at 10:16, Ricardo Telichevesky wrote:
>
> Hello,
>
> Can't find anywhere how to do it .... I've built the gcc compiler many times, in many different machines, and many versions ... However, now I need to compile it in such way that libgfortran.a and libquadmath.a with -fPIC flags, so that I can statically link them inside a shared object that
> contains lapack stuff ..
>
> The problem with distributing shared objects that rely on other shared objects is that quite often the target machine doesn't have the right libraries libgfortran.so and libquadmath.so ... and if I distribute them have to deal with proper search paths, etc, it is a mess...
>
> Any suggestions? - perhaps there is a simple way to force the entire build of gcc to compile with -fPIC ...
Does adding --with-pic to the configure options work?
next prev parent reply other threads:[~2018-12-18 11:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-18 11:40 Ricardo Telichevesky
2018-12-18 14:42 ` Jonathan Wakely [this message]
2018-12-18 19:33 ` Ricardo Telichevesky
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='CAH6eHdSv_V-wZUcucqzcgLrLa1z7GmLXVJ7jxsf7035h-TA=Nw@mail.gmail.com' \
--to=jwakely.gcc@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=ricardo@teli.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).