gcc 的include path和lib path调整
`gcc -print-prog-name=cc1plus` -v
`g++ -print-prog-name=cc1plus` -v
--------------------------------------------------------------------------------
gcc -dumpspecs > specs
When the specs are evaluated, GCC looks for the file <mingw-root>/lib/gcc/mingw32/<gcc-version>/specs
$ gcc -dumpspecs > <mingw-root>/lib/gcc/mingw32/<gcc-version>/specs
--------------------------------------------------------------------------------
*cpp:
%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} -I z:/libx/include
*link_libgcc:
%D -L z:/libx/lib
--------------------------------------------------------------------------------
*local_prefix:
<mingw-root>/local/
*local_includes:
-I%(local_prefix)include
*local_lib_search:
-L%(local_prefix)lib
*cpp:
%(msvcrt_version) %{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} %(local_includes)
*link_libgcc:
%D %(local_lib_search)
*cc1plus:
%(local_includes)
--------------------------------------------------------------------------------
$ C_INCLUDE_PATH=/opt/gdbm-1.8.3/include
$ export C_INCLUDE_PATH
$ CPLUS_INCLUDE_PATH=/opt/gdbm-1.8.3/include
$ export CPLUS_INCLUDE_PATH
$ LIBRARY_PATH=/opt/gdbm-1.8.3/lib
$ export LIBRARY_PATH