liba52: CFLAGS is set to -g -O3 by default

Any setting of -Ox is unconditionally removed, and -O3 is always
applied. See also editor note.
This commit is contained in:
Pierre Labastie 2023-12-22 12:07:53 +01:00
parent 83bd09379f
commit 27442a31af

View File

@ -73,8 +73,10 @@
<ulink url="https://cr.yp.to/djbfft.html">djbfft</ulink>
</para>
<para condition="html" role="usernotes">Editor Notes:
<ulink url="&blfs-wiki;/liba52"/></para>
<para condition="html" role="usernotes">
Editor Notes: <ulink url="&blfs-wiki;/liba52"/>
</para>
</sect2>
<sect2 role="installation">
@ -89,7 +91,7 @@
--mandir=/usr/share/man \
--enable-shared \
--disable-static \
CFLAGS="${CFLAGS:--g -O2} $([ $(uname -m) = x86_64 ] &amp;&amp; echo -fPIC)" &amp;&amp;
CFLAGS="${CFLAGS:--g -O3} $([ $(uname -m) = x86_64 ] &amp;&amp; echo -fPIC)" &amp;&amp;
make</userinput></screen>
<para>
@ -111,8 +113,8 @@ install -v -m644 -D doc/liba52.txt \
<title>Command Explanations</title>
<para>
<parameter>CFLAGS="${CFLAGS:--g -O2} ...</parameter>: This sets
CFLAGS to -g -O2
<parameter>CFLAGS="${CFLAGS:--g -O3} ...</parameter>: This sets
CFLAGS to -g -O3
(which is the default) but then on x86_64 adds -fPIC. This is needed to
compile <application>liba52</application> on x86_64.
</para>