Use gcc without setting environment variables? -
i need information. possible use gcc without set environment variables? quite complicated explain why, have come method that. have installed, want use gcc through binaries.
is there way that?
the reason have 2 different version of gcc, 1 use compilation etc. on other side have develop couple of scripts compile c sources using other version , don't want mess environment variables.
you can specify gcc compiler in command
cc=/usr/bin/gcc-4.4 cxx=/usr/bin/g++-4.4 make
if use cmake, use next cmake parameters
cmake -dcmake_c_compiler=/usr/bin/gcc-4.4 -dcmake_cxx_compiler=/usr/bin/g++-4.4 .
ld_library_path shows application app can find linked shared objects, ld_library_path not needed making
Comments
Post a Comment