Skip to content

Compiling with tcc (ongoing)

Nat! edited this page Sep 20, 2018 · 5 revisions

On linux, tcc is unaware of where the libraries and headers are:

# INCLUDE PATH is rarely useful though
-DCMAKE_C_FLAGS="`gcc -E -Wp,-v - 2>&1 < /dev/null | sed -n -e 's/^ /-isystem /p' | tr '\012' ';'`" \
-DCMAKE_INCLUDE_PATH="`gcc -E -Wp,-v - 2>&1 < /dev/null | sed -n -e 's/^ //p' | tr '\012' ';'`" \
-DCMAKE_LIBRARY_PATH="`gcc -print-search-dirs | sed -n -e 's/^libraries: *=//p' | tr ':' ';'`"
Clone this wiki locally