次のドキュメントを参照してください。
これは、とりわけ次のように述べています。
-Bdir
tcc 内部ライブラリが見つかるパスを設定します (デフォルトは PREFIX/lib/tcc')。"
また、興味深いのは次のとおりです。
-Idir' Specify an additional include path. Include paths are searched in the order they are specified. System include paths are always searched after. The default system include paths are: /usr/local/include', /usr/include' and PREFIX/lib/tcc/include'. (PREFIX' is usually /usr' or
/usr/local')。"
そして最後に:
-Ldir' Specify an additional static library path for the
-l' オプション。デフォルトのライブラリ パスは/usr/local/lib',
/usr/lib' と `/lib' です。
-lxxx' Link your program with dynamic library libxxx.so or static library libxxx.a. The library is searched in the paths specified by the
-L' オプション。