cd src/
gcc -O3 -flto -Wall -Wextra -msse -o ../quad main.c text.c input.c shaders.c custom.c geometry.c sky.c terrain.c water.c fire.c player.c network.c cjson/cJSON.c ufbx/ufbx.c -lm -lpthread -lglfw -lGL -Werror-implicit-function-declaration -flto=auto -lfreetype -I/usr/include/freetype2 -g
#gcc -m32 -O3 -flto -Wall -Wextra -msse -o ../quad main.c text.c input.c shaders.c custom.c player.c -lm -lpthread -lglfw -lGL -Werror-implicit-function-declaration -flto=auto -lfreetype -I/usr/include/freetype2 -g
#-fsanitize=address,undefined
cd ..
# Sanitizers are run-time checks. It will report something when you run the program, not when building
# add -g to compile and run exec with gdb for debug segfault
# once in gdb, type run, then backtrace, quit to exit
# -std=gnu99 over -std=c99 (default) enables multiline R"( in plainC gcc
# -pedantic
# -I/usr/include/freetype2 -I/usr/include/libpng16
# -Werror-implicit-function-declaration or -Werror
Top