public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Daney <ddaney@avtrex.com>
To: lpesce@uchicago.edu
Cc: gcc help <gcc-help@gcc.gnu.org>
Subject: Re: Issue on X86_64?
Date: Sat, 29 Mar 2008 01:02:00 -0000	[thread overview]
Message-ID: <47ED950C.1060900@avtrex.com> (raw)
In-Reply-To: <20080328191557.BDJ30009@m4500-01.uchicago.edu>

Lorenzo Pesce wrote:
> David,
> 
>>> However, when I try to build a dynamically linked library
> to be loaded 
>>> by java, including the .o files from libgfortran.a
>>>
>> This seems like a bad thing to do.  libgfortran.a does not
> contain PIC code, so its members cannot be put in a shared
> library.  You should link against libgfortran.so
> 
> This would seem the right solution on the surface, however,
> if I link against the .so, i have three problems:
> 1) When I release the code to the masses, they need one
> additional library. My issues is not with running my code but
> rather with my users (I have thousands of users and they are
> not very good with their computers).
> 2) Java needs to find where the library is and it does not
> seem to work.
> 3) The .so, because of libstc's and so on, port fairly poorly,
> so even if I wanted to include them in a release, it would
> still be a pain.
> 
> Much easier for me would be to have access to the objects of
> libgortran.a compiled as PIC. I don't care for many parts of
> the .so because the code runs only as a library.
> 
> 
> Does it make sense?

I understand what you are saying, but I don't necessarily agree that it 
is the 'right thing to do'.

The object files you need exist somewhere in the gcc build tree (but not 
in any archive), you need to figure out how to get them out.

David Daney

       reply	other threads:[~2008-03-29  1:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080328191557.BDJ30009@m4500-01.uchicago.edu>
2008-03-29  1:02 ` David Daney [this message]
2008-03-29  3:21 Lorenzo Pesce
2008-03-29  4:17 ` Ian Lance Taylor
  -- strict thread matches above, loose matches on Subject: below --
2008-03-25 21:06 Lorenzo Pesce
2008-03-26 10:03 ` Andrew Haley
2008-03-28 17:20   ` Lorenzo Pesce
2008-03-28 17:45     ` Andrew Haley
2008-03-28 17:57       ` Lorenzo Pesce
2008-03-28 18:07         ` Andrew Haley
2008-03-28 18:41           ` Lorenzo Pesce
2008-03-28 19:55             ` Andrew Haley
2008-03-28 22:31               ` Lorenzo Pesce
2008-03-28 22:51                 ` David Daney

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=47ED950C.1060900@avtrex.com \
    --to=ddaney@avtrex.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=lpesce@uchicago.edu \
    /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).