Remove the -fcommon hack by applying upstream fix for xorg ati driver

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23159 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Pierre Labastie 2020-05-18 12:19:24 +00:00
parent 2f5d812c71
commit 05738781f2

View File

@ -182,16 +182,22 @@ CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"</literal></screen>
<sect3 role="installation">
<title>Installation of Xorg ATI Driver</title>
<!--
Note: Fixed upstream, should be unneeded for versions gtr 19.1.0
-->
<para>
First, fix an issue exposed by GCC 10 and later:
</para>
<screen><userinput>sed -e 's/miPointer/extern &amp;/' \
-i src/drmmode_display.h</userinput></screen>
<para>
Install <application>Xorg ATI Driver</application> by running the following
commands:
</para>
<!--
Note: Check if -fcommon is still required on versions gtr 19.1.0
Its a "hack" for gcc-10
-->
<screen><userinput>CFLAGS="$CFLAGS -fcommon" ./configure $XORG_CONFIG &amp;&amp;
<screen><userinput>./configure $XORG_CONFIG &amp;&amp;
make</userinput></screen>
<para>