Dear expert,
My .bash_profile contain the following lines:
# User specific environment and startup programs
export CFLAGS="-I $HOME/.libstree/include";
export LDFLAGS="-L $HOME/.libstree/lib";
export LD_LIBRARY_PATH=/home/ewijaya/MyBioTool/libstree-0.4.2/lib:${LD_LIBRARY_PATH}
export CFLAGS="-I $HOME/.gsl/include";
export LDFLAGS="-L $HOME/.gsl/lib";
export LD_LIBRARY_PATH=/home/ewijaya/MyBioTool/gsl-1.7/lib:${LD_LIBRARY_PATH}
export CFLAGS="-I $HOME/.swish/include";
export LDFLAGS="-L $HOME/.swish/lib";
export LD_LIBRARY_PATH=/home/ewijaya/.swish/lib:${LD_LIBRARY_PATH}
I wonder how can I simplify those multiple: CFLAGS,LDFLAGS,and LD_LIBRARY_PATH?
Second question is that, why after doing "printenv" the CFLAGS,LDFLAGS are only shown for .swish? namely the last block of export for .swish?
$ printenv | grep 'CFLAGS'
Gives only:
CFLAGS=-I /home/ewijaya/.swish/include
and
$ printenv | grep 'LDFLAGS'
Gives only:
LDFLAGS=-L /home/ewijaya/.swish/lib
But it's okay for LD_LIBRARY_PATH:
$ printenv | grep 'LD_LIBRARY'
LD_LIBRARY_PATH=/home/ewijaya/.swish/lib:/home/ewijaya/MyBioTool/gsl-1.7/lib:/home/ewijaya/MyBioTool/libstree-0.4.2/lib:
Thanks so much beforehand.