On 5/2/06, M.Canales.es <[EMAIL PROTECTED]> 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 ...
else
./configure ...
fi
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page