shithub: tinygl

Download patch

ref: 845350685f6ffbfe343c1bb0ac3ac0e6a90563b2
parent: 0a72962fb678da68021f00592ac671c5f3b8442d
author: MHS <gek@katherine>
date: Wed Apr 7 08:12:10 EDT 2021

Automatic commit.

--- a/README.md
+++ b/README.md
@@ -245,7 +245,7 @@
 
 ```sh
 # inside the src directory
-gcc -Wno-uninitialized -O3 -c *.c 
+gcc -O3 -c *.c 
 ar rcs libTinyGL.a *.o
 # the library is now compiled
 cp libTinyGL.a ../lib
--- a/config.mk
+++ b/config.mk
@@ -2,12 +2,18 @@
 # C compiler
 
 CC= gcc
+#uncomment the following line for compiling the lib using tinyc.
+#note that the demos will fail to build with tinyc, but you can 
+#-link- to tinygl built with tinyc using gcc.
 #CC= tcc
 #CFLAGS= -Wall -w -O3 -g -std=c99 -mtune=native -DNDEBUG
 #CFLAGS= -Wall -w -O3 -g -std=c99 -march=native -DNDEBUG
 
-CFLAGS= -Wall -Warray-bounds=2 -O3 -std=gnu99 -mtune=native -DNDEBUG -g -fopenmp -Wno-uninitialized
-#CFLAGS= -Wall -O3 -std=gnu99 -DNDEBUG -g -Wno-uninitialized
+#extract the maximum possible performance from gcc.
+CFLAGS= -Wall -Warray-bounds=2 -O3 -std=gnu99 -mtune=native -DNDEBUG -g -fopenmp
+#uncomment the following line for compiling the lib with tinyc
+#keep these flags for compiling with gcc if you are linking with tinygl compiled with tcc.
+#CFLAGS= -Wall -O3 -std=gnu99 -DNDEBUG -g
 #CFLAGS= -Wall -O1 -g -std=c99 -Wno-undef -DNDEBUG
 LFLAGS=