Author: bdubbs
Date: Sun May 13 10:52:20 2018
New Revision: 20144

Log:
GCC 8 fixes

Modified:
   trunk/BOOK/general/prog/nasm.xml
   trunk/BOOK/x/lib/freeglut.xml

Modified: trunk/BOOK/general/prog/nasm.xml
==============================================================================
--- trunk/BOOK/general/prog/nasm.xml    Sun May 13 10:51:04 2018        (r20143)
+++ trunk/BOOK/general/prog/nasm.xml    Sun May 13 10:52:20 2018        (r20144)
@@ -73,6 +73,10 @@
   <sect2 role="installation">
     <title>Installation of NASM</title>
 
+    <para>First, fix an issue when building with gcc 8:</para>
+
+<screen><userinput>sed -i '/seg_init/s/pure_func//' 
include/nasmlib.h</userinput></screen>
+
     <para>If you downloaded the optional documentation, put it into the
     source tree:</para>
 

Modified: trunk/BOOK/x/lib/freeglut.xml
==============================================================================
--- trunk/BOOK/x/lib/freeglut.xml       Sun May 13 10:51:04 2018        (r20143)
+++ trunk/BOOK/x/lib/freeglut.xml       Sun May 13 10:52:20 2018        (r20144)
@@ -103,10 +103,12 @@
 <screen><userinput>mkdir build &amp;&amp;
 cd    build &amp;&amp;
 
-cmake -DCMAKE_INSTALL_PREFIX=/usr      \
-      -DCMAKE_BUILD_TYPE=Release       \
-      -DFREEGLUT_BUILD_DEMOS=OFF       \
-      -DFREEGLUT_BUILD_STATIC_LIBS=OFF \
+CMAKE_LIBRARY_PATH=$XORG_PREFIX/lib     \
+CMAKE_INCLUDE_PATH=$XORG_PREFIX/include \
+cmake -DCMAKE_INSTALL_PREFIX=/usr       \
+      -DCMAKE_BUILD_TYPE=Release        \
+      -DFREEGLUT_BUILD_DEMOS=OFF        \
+      -DFREEGLUT_BUILD_STATIC_LIBS=OFF  \
       .. &amp;&amp;
 
 make</userinput></screen>
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to