<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Thanks for the reply and for the tip. <br>
<br>
<br>
On 06/29/2015 09:51 AM, Jeff Frontz wrote:<br>
</div>
<blockquote
cite="mid:CAGvwsDmPPhdAVS=rnPkOHdfYxdz9vpYtaeXJCJLVDtbU_jTyBA@mail.gmail.com"
type="cite">
<pre wrap="">I can't remember the x86 addressing modes (or their implementations),
but relative-mode addressing can add overhead in some architectures.
Take a peek at
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/813980/why-isnt-all-code-compiled-position-independent">http://stackoverflow.com/questions/813980/why-isnt-all-code-compiled-position-independent</a>
</pre>
</blockquote>
<br>
I was surprised that one build w/o -fPIC appeared to be bigger in
size then the same build with -fPIC. Would expect PIC support to
increase the size, not shrink it. (Or maybe I was cross-eyed.) Did
not compare performance of the two. <br>
<br>
The above link, and a wikipedia page it led to, give me some good
clues. <br>
<br>
<br>
<blockquote
cite="mid:CAGvwsDmPPhdAVS=rnPkOHdfYxdz9vpYtaeXJCJLVDtbU_jTyBA@mail.gmail.com"
type="cite">
<pre wrap="">As to knowing if -fPIC is needed -- that's not known
until you try to build the dependent, right?</pre>
</blockquote>
<br>
Sure, but autoconf/automake discovers things like that by trying a
number of small compiles. Kind of ASSumed this would be covered too.
<br>
<br>
I stick with the standard recipe as closely as possible. Over the
years, I have collected over 150 packages that I can quickly
re-build from the latest sources. I actively maintain probably half
of these, as needed. Usually the '<font face="Courier New, Courier,
monospace">./configure</font>' step figures everything out, so
it's easily automated. Exporting <font face="Courier New, Courier,
monospace">CFLAGS="-fPIC"</font> before that step is my current
work-around. Not elegant. <br>
<br>
I have a lot to learn. <br>
<br>
-- R; <><<br>
<br>
<br>
<br>
</body>
</html>