According to the instruction, I made cc a symlink to /usr/bin/gcc using the command
Code:
ln -sv gcc /usr/bin/cc
and when I went to /usr/bin to do
, I do see that the symlink is created. However, the sanity check
Code:
echo 'main(){}' > dummy.c
cc dummy.c -v -Wl,--verbose &> dummy.log
readelf -l a.out | grep ': /lib'
gives no output.
However, when I tried the above with "
gcc" instead of "
cc", everything, including the subsequent outputs expected from the sanity checks, came about correctly.
Any idea why this is happening?