couple jhalfs-X thoughts (long.. sorry.)

Dan Nicholson dbn.lists at
Tue May 2 11:20:46 PDT 2006

On 5/2/06, <manuel at> wrote:
> El Martes, 2 de Mayo de 2006 15:19, Dan Nicholson escribió:
> > Then, -fPIC is always added to the shared library flags.  This can be
> > accomplished with the following sed:
> >
> > sed -i.bak 's/SFLAGS=.*fPIC/SFLAGS="\${CFLAGS--O3} -fPIC"/' configure
> Many thanks. I will see if we can to use that when implementing the
> optimizations code.

Wait, that one's a bit wrong.  This one works, but also hammers the
other platforms.  Be careful with HP-UX From Scratch :-)

sed -i.bak 's/SFLAGS=.*/SFLAGS="\${CFLAGS--O3} -fPIC"/' configure

Another alternative is to test whether CFLAGS is set or not.  I don't
know how this would affect jhalfs.

if [ "$CFLAGS" ]; then
    CFLAGS="$CFLAGS -fPIC" ./configure ...
    ./configure ...


More information about the alfs-discuss mailing list