1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

How to print ld command line while compling with gcc

Discussion in 'C' started by jackliang, Apr 28, 2011.

  1. jackliang

    jackliang New Member

    Joined:
    Nov 11, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hi, everyone. I'm not sure GCC's optimization options such as -O1 ... -O5 are needed at linkage, so I'm thinking about print the ld command that the gcc invokes. You know, GCC has a -v option, but only shows the collect2 command line at linkage.
    So,how can I print the ld command line?
    Thanks in advance!
    Waiting online...
     

Share This Page